SWDEV-329082 - Return right error code for hipHostUnregister

hipErrorHostMemoryNotRegistered should be returned when an
unregistered pointer is passed to hipHostUnregister

Change-Id: Ie76086b602bde2cd7a7a2b049cd03d29454ff306


[ROCm/clr commit: ed4014e519]
Этот коммит содержится в:
Satyanvesh Dittakavi
2022-03-23 13:35:37 +00:00
родитель 556a37f1de
Коммит cb4625e5b7
+1 -1
Просмотреть файл
@@ -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: