From 9692cdb9f27f3f82db7fd6d2c285c5f8c28cba5c Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 29 Aug 2019 17:35:38 -0400 Subject: [PATCH] P4 to Git Change 1991227 by cpaquot@cpaquot-ocl-lc-lnx on 2019/08/29 17:26:37 SWDEV-193938 - [HIP] Use fine grained pool for hipHostRegister Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#69 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#40 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#43 edit [ROCm/clr commit: 8ea92c83f071ea153c6d9de7d33f670c062d51a2] --- projects/clr/hipamd/api/hip/hip_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/api/hip/hip_memory.cpp b/projects/clr/hipamd/api/hip/hip_memory.cpp index d00400c88b..0d9b1bec06 100644 --- a/projects/clr/hipamd/api/hip/hip_memory.cpp +++ b/projects/clr/hipamd/api/hip/hip_memory.cpp @@ -570,7 +570,7 @@ hipError_t hipHostGetFlags(unsigned int* flagsPtr, void* hostPtr) { hipError_t hipHostRegister(void* hostPtr, size_t sizeBytes, unsigned int flags) { HIP_INIT_API(hostPtr, sizeBytes, flags); if(hostPtr != nullptr) { - amd::Memory* mem = new (*hip::host_context) amd::Buffer(*hip::host_context, CL_MEM_USE_HOST_PTR, sizeBytes); + amd::Memory* mem = new (*hip::host_context) amd::Buffer(*hip::host_context, CL_MEM_USE_HOST_PTR | CL_MEM_SVM_ATOMICS, sizeBytes); constexpr bool sysMemAlloc = false; constexpr bool skipAlloc = false;