SWDEV-374371 - hipGraphAddMemsetNode should return error if width is 0
Change-Id: I1cd4be271f65c9cade8dddb6d00191e1b74c96bc
Tá an tiomantas seo le fáil i:
1 tuismitheoir
ce60d47b61
tiomantas
409f23d905
1 comhad athraithe
+5
@@ -2748,6 +2748,11 @@ hipError_t ihipGraphMemsetParams_validate(const hipMemsetParams* pNodeParams) {
|
||||
if (pNodeParams == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
if (pNodeParams->width == 0) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
if (pNodeParams->elementSize != 1 && pNodeParams->elementSize != 2 && pNodeParams->elementSize != 4) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir