SWDEV-369668 - updating return for invalid value
Change-Id: Ia380dd418845c84f5ab910b32dfd4907af06852d
[ROCm/clr commit: 539ee310c3]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
e1c7a692cd
tiomantas
f14e820eba
1 comhad athraithe
+11
-3
@@ -357,7 +357,11 @@ hipError_t hipDrvGetErrorName(hipError_t hip_error, const char** errStr)
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
*errStr = ihipGetErrorName(hip_error);
|
||||
return hipSuccess;
|
||||
if (!strcmp( *errStr, "hipErrorUnknown")) {
|
||||
return hipSuccess;
|
||||
} else {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
}
|
||||
|
||||
hipError_t hipDrvGetErrorString(hipError_t hip_error, const char** errStr)
|
||||
@@ -366,5 +370,9 @@ hipError_t hipDrvGetErrorString(hipError_t hip_error, const char** errStr)
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
*errStr = ihipGetErrorString(hip_error);
|
||||
return hipSuccess;
|
||||
}
|
||||
if (!strcmp( *errStr, "unkown error")) {
|
||||
return hipSuccess;
|
||||
} else {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
}
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir