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: 3f3ff266fa]
Este commit está contenido en:
foreman
2017-10-27 16:36:05 -04:00
padre 808b68ab63
commit f0ae7312f5
@@ -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<char*>(owner()->getHostMem()) + origin[0]);
}