P4 to Git Change 1576208 by vsytchen@vsytchen-win10 on 2018/07/04 15:36:47
SWDEV-154903 - [Vega10][PAL] clSVMAlloc is failing to create allocations greater than 2GB
1. Uncommit coarse grain SVM from system memory when calling clEnqueueSVMUnmap
ReviewBoardURL = http://ocltc.amd.com/reviews/r/15336/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#133 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#22 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#133 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#106 edit
[ROCm/clr commit: 0bc34b7062]
This commit is contained in:
@@ -385,6 +385,10 @@ Memory::~Memory() {
|
||||
|
||||
// Release associated map target, if any
|
||||
if (nullptr != mapMemory_) {
|
||||
if (owner()->getSvmPtr() != nullptr) {
|
||||
owner()->uncommitSvmMemory();
|
||||
}
|
||||
|
||||
mapMemory()->unmap(nullptr);
|
||||
mapMemory_->release();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user