P4 to Git Change 1570053 by jatang@jatang-opencl-hsa-stg5 on 2018/06/19 09:47:32
SWDEV-155306 - Restore ClockMode when the last queue is destroyed. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#110 edit
This commit is contained in:
@@ -956,6 +956,14 @@ VirtualGPU::~VirtualGPU() {
|
||||
//! The first queue is reserved for the transfers on device
|
||||
if (static_cast<int>(gpuDevice_.numOfVgpus_ - 1) <= 1) {
|
||||
gpuDevice_.destroyScratchBuffers();
|
||||
|
||||
// Restore the ClockMode back to Default.
|
||||
// This will be removed once KMD/PPLIB supports restoring the ClockMode when KMD
|
||||
// detects the OCL process is gone.
|
||||
Pal::SetClockModeInput input = {};
|
||||
Pal::SetClockModeOutput output = {};
|
||||
input.clockMode = Pal::DeviceClockMode::Default;
|
||||
dev().iDev()->SetClockMode(input, &output);
|
||||
}
|
||||
|
||||
// Destroy BlitManager object
|
||||
|
||||
Reference in New Issue
Block a user