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.

[ROCm/clr commit: c329b548eb]
Этот коммит содержится в:
Patel, Jaydeepkumar
2025-08-01 14:41:40 +05:30
коммит произвёл GitHub
родитель b69f832430
Коммит 4458842ceb
+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);