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]
Этот коммит содержится в:
@@ -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:
|
||||
|
||||
Ссылка в новой задаче
Block a user