P4 to Git Change 1455765 by gandryey@gera-w8 on 2017/09/06 11:57:19
SWDEV-131497 - [CQE OCL][Vega10][OclTst][QR][DTB-Blocker] 'Spir' test of OCLTST is crashing randomly 3/10 times; Faulty CL# 1451293
- The test doesn't release command queues, which may cause a crash on the device destruction. Force the app's queue destruction if the app didn't release them.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#54 edit
[ROCm/clr commit: d3d97c5010]
This commit is contained in:
@@ -657,6 +657,11 @@ Device::~Device() {
|
||||
delete globalScratchBuf_;
|
||||
globalScratchBuf_ = nullptr;
|
||||
|
||||
// Release all queues if the app didn't release them
|
||||
while (vgpus().size() > 1) {
|
||||
delete vgpus()[1];
|
||||
}
|
||||
|
||||
// Destroy transfer queue
|
||||
delete xferQueue_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user