P4 to Git Change 1977018 by cpaquot@cpaquot-ocl-lc-lnx on 2019/08/01 11:58:59

SWDEV-197462 - [HIP] Add HIP_INIT_API to hipFree to initialize current thread.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#64 edit


[ROCm/clr commit: 678ee6de51]
Este commit está contenido en:
foreman
2019-08-01 12:06:04 -04:00
padre cf3b2f43b1
commit abd12f5d33
+2
Ver fichero
@@ -240,6 +240,8 @@ hipError_t hipHostMalloc(void** ptr, size_t sizeBytes, unsigned int flags) {
}
hipError_t hipFree(void* ptr) {
HIP_INIT_API(ptr);
if (ptr == nullptr) {
HIP_RETURN(hipSuccess);
}