From abd12f5d33a8339c5baf73a94ed49c37551b8996 Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 1 Aug 2019 12:06:04 -0400 Subject: [PATCH] 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: 678ee6de51a04d9f29ce875ce3d4c1e45479aa96] --- projects/clr/hipamd/api/hip/hip_memory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/clr/hipamd/api/hip/hip_memory.cpp b/projects/clr/hipamd/api/hip/hip_memory.cpp index c3755cf028..46d84b8520 100644 --- a/projects/clr/hipamd/api/hip/hip_memory.cpp +++ b/projects/clr/hipamd/api/hip/hip_memory.cpp @@ -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); }