diff --git a/projects/clr/hipamd/src/hip_memory.cpp b/projects/clr/hipamd/src/hip_memory.cpp index a4cc73f31d..12da05183e 100644 --- a/projects/clr/hipamd/src/hip_memory.cpp +++ b/projects/clr/hipamd/src/hip_memory.cpp @@ -1044,7 +1044,7 @@ hipError_t hipHostUnregister(void* hostPtr) { } LogPrintfError("Cannot unregister host_ptr: 0x%x \n", hostPtr); - HIP_RETURN(hipErrorInvalidValue); + HIP_RETURN(hipErrorHostMemoryNotRegistered); } // Deprecated function: