SWDEV-541799 - Return hipSuccess from hipFreeAsync if ptr to free is … (#683)
SWDEV-541799 - Return hipSuccess from hipFreeAsync if ptr to free is nullptr to match with hipFree.
This commit is contained in:
1 والد
76d2c4135e
کامیت
c329b548eb
1 file changed
+1
-1
@@ -162,7 +162,7 @@ hipError_t hipFreeAsync(void* dev_ptr, hipStream_t stream) {
|
||||
}
|
||||
|
||||
if (dev_ptr == nullptr) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
STREAM_CAPTURE(hipFreeAsync, stream, dev_ptr);
|
||||
|
||||
Reference in new issue
Block a user