P4 to Git Change 1594574 by vsytchen@vsytchen-win10 on 2018/08/16 13:43:33
SWDEV-159881 - [OCL][ROCm] Add SVM coarse-grain buffer support with device memory (Part 2) 1. Implement clEnqueueSvmMap/Unmap using a staging buffer 2. Enable device memory coarse grain SVM for OCL only with single device contexts. ReviewBoardURL = http://ocltc.amd.com/reviews/r/15616/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#94 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#30 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#38 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#63 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#19 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#296 edit
Bu işleme şunda yer alıyor:
@@ -1454,7 +1454,9 @@ device::Memory* Device::createMemory(amd::Memory& owner) const {
|
||||
}
|
||||
|
||||
// Prepin sysmem buffer for possible data synchronization between CPU and GPU
|
||||
if (!memory->isHostMemDirectAccess() && (owner.getHostMem() != nullptr)) {
|
||||
if (!memory->isHostMemDirectAccess() &&
|
||||
(owner.getHostMem() != nullptr) &&
|
||||
(owner.getSvmPtr() == nullptr)) {
|
||||
memory->pinSystemMemory(owner.getHostMem(), owner.getSize());
|
||||
}
|
||||
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle