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
이 커밋은 다음에 포함됨:
1 부모
f0ac05164a
커밋
c2105d8f16
4 파일이 변경됨
+28
-12
검색과 일치하는 파일 없음
@@ -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()) {
|
||||
|
||||
새 이슈에서 참조
사용자 차단