From f1dda2b2b3ef0fb0111308d64001d84d032cc244 Mon Sep 17 00:00:00 2001 From: pghafari Date: Wed, 7 Dec 2022 02:06:13 -0500 Subject: [PATCH] SWDEV-369668 - update error check for hipGetError Change-Id: I8f991237d59d04c9b6b3965a453ba3f54718eb43 [ROCm/clr commit: 52878fd0391d6433e0e3e2b9baa1d8dca3560e12] --- projects/clr/hipamd/src/hip_error.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/src/hip_error.cpp b/projects/clr/hipamd/src/hip_error.cpp index fcffeb6536..6f3d371272 100644 --- a/projects/clr/hipamd/src/hip_error.cpp +++ b/projects/clr/hipamd/src/hip_error.cpp @@ -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;