P4 to Git Change 1705133 by jujiang@JJ-OCL-w8 on 2018/11/09 15:07:10
SWDEV-155310 - Request for OpenCL extension function to set stable pstate
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#128 edit
[ROCm/clr commit: 00ecd2435d]
This commit is contained in:
@@ -982,14 +982,6 @@ VirtualGPU::~VirtualGPU() {
|
|||||||
//! The first queue is reserved for the transfers on device
|
//! The first queue is reserved for the transfers on device
|
||||||
if (static_cast<int>(gpuDevice_.numOfVgpus_ - 1) <= 1) {
|
if (static_cast<int>(gpuDevice_.numOfVgpus_ - 1) <= 1) {
|
||||||
gpuDevice_.destroyScratchBuffers();
|
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
|
// Destroy BlitManager object
|
||||||
@@ -2401,11 +2393,7 @@ void VirtualGPU::submitPerfCounter(amd::PerfCounterCommand& vcmd) {
|
|||||||
palPerf = counter->iPerf();
|
palPerf = counter->iPerf();
|
||||||
// Find the state and sends the command to PAL
|
// Find the state and sends the command to PAL
|
||||||
if (vcmd.getState() == amd::PerfCounterCommand::Begin) {
|
if (vcmd.getState() == amd::PerfCounterCommand::Begin) {
|
||||||
Pal::SetClockModeInput input;
|
|
||||||
Pal::SetClockModeOutput output = {};
|
|
||||||
state_.perfCounterEnabled_ = true;
|
state_.perfCounterEnabled_ = true;
|
||||||
input.clockMode = Pal::DeviceClockMode::Profiling;
|
|
||||||
dev().iDev()->SetClockMode(input, &output);
|
|
||||||
GpuEvent event;
|
GpuEvent event;
|
||||||
eventBegin(MainEngine);
|
eventBegin(MainEngine);
|
||||||
iCmd()->CmdBeginPerfExperiment(palPerf);
|
iCmd()->CmdBeginPerfExperiment(palPerf);
|
||||||
|
|||||||
Reference in New Issue
Block a user