P4 to Git Change 1968648 by jatang@jatang_win_pal_lc on 2019/07/16 17:42:09
SWDEV-174198 - Fix segfault running integer_ops.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#78 edit
[ROCm/clr commit: 8f1e23197a]
This commit is contained in:
@@ -605,6 +605,9 @@ VirtualGPU::~VirtualGPU() {
|
||||
virtualQueue_->release();
|
||||
}
|
||||
|
||||
// Lock the device to make the following thread safe
|
||||
amd::ScopedLock lock(roc_device_.vgpusAccess());
|
||||
|
||||
--roc_device_.numOfVgpus_; // Virtual gpu unique index decrementing
|
||||
roc_device_.vgpus_.erase(roc_device_.vgpus_.begin() + index());
|
||||
for (uint idx = index(); idx < roc_device_.vgpus().size(); ++idx) {
|
||||
|
||||
Reference in New Issue
Block a user