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
这个提交包含在:
foreman
2017-10-27 16:36:05 -04:00
父节点 3839a2fe8c
当前提交 3f3ff266fa
+1 -1
查看文件
@@ -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]);
}