P4 to Git Change 1476364 by gandryey@gera-w8 on 2017/10/30 14:40:10
SWDEV-79445 - Add logic to handle persistent memory separately from the host memory path - Some of the optimizations applied to the host memory can't be used for persistent Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#20 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#30 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.hpp#10 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#45 edit
This commit is contained in:
1 orang tua
f0ac05164a
melakukan
c2105d8f16
4 files changed
+28
-12
No files matched your search
@@ -1188,6 +1188,8 @@ void VirtualGPU::submitMapMemory(amd::MapMemoryCommand& cmd) {
|
||||
// Add memory to VA cache, so rutnime can detect direct access to VA
|
||||
dev().addVACache(devMemory);
|
||||
}
|
||||
} else if (devMemory->IsPersistentDirectMap()) {
|
||||
// Persistent memory - NOP map
|
||||
} else if (mapFlag & (CL_MAP_READ | CL_MAP_WRITE)) {
|
||||
bool result = false;
|
||||
roc::Memory* hsaMemory = static_cast<roc::Memory*>(devMemory);
|
||||
@@ -1266,6 +1268,8 @@ void VirtualGPU::submitUnmapMemory(amd::UnmapMemoryCommand& cmd) {
|
||||
// Remove memory from VA cache
|
||||
dev().removeVACache(devMemory);
|
||||
}
|
||||
} else if (devMemory->IsPersistentDirectMap()) {
|
||||
// Persistent memory - NOP unmap
|
||||
} else if (mapInfo->isUnmapWrite()) {
|
||||
// Commit the changes made by the user.
|
||||
if (!devMemory->isHostMemDirectAccess()) {
|
||||
|
||||
Reference in new issue
Block a user