From f0ae7312f5e594e96a7420f58859b68a717570f6 Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 27 Oct 2017 16:36:05 -0400 Subject: [PATCH] P4 to Git Change 1475897 by gandryey@gera-w8 on 2017/10/27 16:28:25 SWDEV-79445 - Don't enable HostMemoryDirectAccess flag for persistent memory - Fix a build error Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#29 edit [ROCm/clr commit: 3f3ff266fafd0450acaf1b062ff3534bcdab1d56] --- projects/clr/rocclr/runtime/device/rocm/rocmemory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/rocclr/runtime/device/rocm/rocmemory.cpp b/projects/clr/rocclr/runtime/device/rocm/rocmemory.cpp index 29fdb72ae2..d789aea9b4 100644 --- a/projects/clr/rocclr/runtime/device/rocm/rocmemory.cpp +++ b/projects/clr/rocclr/runtime/device/rocm/rocmemory.cpp @@ -94,7 +94,7 @@ void* Memory::allocMapTarget(const amd::Coord3D& origin, const amd::Coord3D& reg incIndMapCount(); // If the device backing storage is direct accessible, use it. const cl_mem_flags memFlags = owner()->getMemFlags(); - if (isHostMemDirectAccess() || (memFlags & CL_MEM_USE_PERSISTENT_MEM_AMD)) + if (isHostMemDirectAccess() || (memFlags & CL_MEM_USE_PERSISTENT_MEM_AMD)) { if (owner()->getHostMem() != nullptr) { return (static_cast(owner()->getHostMem()) + origin[0]); }