SWDEV-369668 - update error check for hipGetError

Change-Id: I8f991237d59d04c9b6b3965a453ba3f54718eb43


[ROCm/clr commit: 52878fd039]
This commit is contained in:
pghafari
2022-12-07 02:06:13 -05:00
committed by Payam Ghafari
orang tua b4f089f6e7
melakukan f1dda2b2b3
+2 -2
Melihat File
@@ -357,7 +357,7 @@ hipError_t hipDrvGetErrorName(hipError_t hip_error, const char** errStr)
return hipErrorInvalidValue;
}
*errStr = ihipGetErrorName(hip_error);
if (!strcmp( *errStr, "hipErrorUnknown")) {
if (strcmp( *errStr, "hipErrorUnknown") != 0) {
return hipSuccess;
} else {
return hipErrorInvalidValue;
@@ -370,7 +370,7 @@ hipError_t hipDrvGetErrorString(hipError_t hip_error, const char** errStr)
return hipErrorInvalidValue;
}
*errStr = ihipGetErrorString(hip_error);
if (!strcmp( *errStr, "unkown error")) {
if (strcmp( *errStr, "unknown error") != 0) {
return hipSuccess;
} else {
return hipErrorInvalidValue;