P4 to Git Change 1114490 by gandryey@gera-dev-w7 on 2015/01/22 18:28:21
EPR #410560 - Forum: [169727] Bug? CL_MEM_COPY_HOST_PTR is not thread safe
- Regression on Trinity. Add scratch unbind. On Trinity blit kernels may use scratch.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#348 edit
[ROCm/clr commit: 1c3b32fef2]
Dieser Commit ist enthalten in:
@@ -2915,6 +2915,17 @@ VirtualGPU::releaseMemObjects()
|
||||
if (numGrpCb_ != NULL) {
|
||||
setConstantBuffer(SC_INFO_CONSTANTBUFFER, NULL, 0, 0);
|
||||
}
|
||||
|
||||
if ((dev().scratch(hwRing()) != NULL) &&
|
||||
(dev().scratch(hwRing())->regNum_ > 0)) {
|
||||
// Unbind scratch memory
|
||||
const std::vector<Memory*>& mems = dev().scratch(hwRing())->memObjs_;
|
||||
for (uint i = 0; i < mems.size(); ++i) {
|
||||
if (mems[i] != NULL) {
|
||||
setScratchBuffer(NULL, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
gpuEvents_.clear();
|
||||
}
|
||||
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren