P4 to Git Change 1367270 by gandryey@gera-w8 on 2017/01/30 15:31:49
SWDEV-112273 - [ROCm CQE][OCLonLC][QR][G] 2 of 9 tests failed with mem_host_flags due to CL#1366459
- Keep system memory for images with UHP allocations
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#38 edit
[ROCm/clr commit: cfac74adbf]
Этот коммит содержится в:
@@ -1183,7 +1183,7 @@ Device::createVirtualDevice(amd::CommandQueue* queue)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if(profiling) {
|
||||
if (profiling) {
|
||||
hsa_amd_profiling_set_profiler_enabled(virtualDevice->gpu_queue(), 1);
|
||||
}
|
||||
|
||||
@@ -1417,7 +1417,9 @@ Device::createMemory(amd::Memory &owner) const
|
||||
amd::Coord3D(0, 0, 0), imageView->getRegion(),
|
||||
0,
|
||||
0, true);
|
||||
owner.setHostMem(nullptr);
|
||||
if (owner.getMemFlags() & CL_MEM_COPY_HOST_PTR) {
|
||||
owner.setHostMem(nullptr);
|
||||
}
|
||||
|
||||
imageView->release();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user