P4 to Git Change 1553193 by gandryey@gera-lnx-rcf-lc on 2018/05/10 13:55:21
SWDEV-79445 - OCL generic changes and code clean-up - Following CL#1552596. Add a flag to skip memory allocation. ROCr backend requires access to the parent object in the blit manager, but it's not fully initialized and a view creation is required. However a view creation with not fully initialized object can cause a dead lock if device memory is allocated during the object create. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#35 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#132 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#104 edit
이 커밋은 다음에 포함됨:
@@ -708,7 +708,7 @@ bool Buffer::create() {
|
||||
// data transfer to the view of the buffer.
|
||||
amd::Buffer* bufferView = new (owner()->getContext())
|
||||
amd::Buffer(*owner(), 0, owner()->getOrigin(), owner()->getSize());
|
||||
bufferView->create();
|
||||
bufferView->create(nullptr, false, true);
|
||||
|
||||
roc::Buffer* devBufferView = new roc::Buffer(dev_, *bufferView);
|
||||
devBufferView->deviceMemory_ = deviceMemory_;
|
||||
|
||||
새 이슈에서 참조
사용자 차단