P4 to Git Change 1414965 by gandryey@gera-w8 on 2017/05/26 15:51:24
SWDEV-79445 - OCL generic changes and code clean-up
- use getBackendDevice() for HSA agent look-up for persistent memory allocation
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#23 edit
[ROCm/clr commit: 8854784f49]
Bu işleme şunda yer alıyor:
@@ -639,7 +639,7 @@ bool Buffer::create() {
|
||||
#ifdef WITH_AMDGPU_PRO
|
||||
if ((memFlags & CL_MEM_USE_PERSISTENT_MEM_AMD) && dev().ProEna()) {
|
||||
void* host_ptr = nullptr;
|
||||
deviceMemory_ = dev().iPro().AllocDmaBuffer(dev().getGpuAgents()[0], size(), &host_ptr);
|
||||
deviceMemory_ = dev().iPro().AllocDmaBuffer(dev().getBackendDevice(), size(), &host_ptr);
|
||||
if (deviceMemory_ == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle