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
这个提交包含在:
foreman 于 2019-08-01 12:06:04 -04:00 提交
1 父节点 996b356695
当前提交 678ee6de51
1 个文件已更改
+2
+2
查看文件
@@ -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);
}