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
这个提交包含在:
@@ -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]);
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户