From 4a0108f3c8d3840955fca4e29f3d6f29c0e8d9b7 Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 9 Nov 2018 15:25:49 -0500
Subject: [PATCH] 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: 00ecd2435de9af1c9eb69413629e497cb09f6bb2]
---
.../clr/rocclr/runtime/device/pal/palvirtual.cpp | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/pal/palvirtual.cpp b/projects/clr/rocclr/runtime/device/pal/palvirtual.cpp
index 22c4f5eb9f..b0a23a45fe 100644
--- a/projects/clr/rocclr/runtime/device/pal/palvirtual.cpp
+++ b/projects/clr/rocclr/runtime/device/pal/palvirtual.cpp
@@ -982,14 +982,6 @@ VirtualGPU::~VirtualGPU() {
//! The first queue is reserved for the transfers on device
if (static_cast(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
@@ -2401,11 +2393,7 @@ void VirtualGPU::submitPerfCounter(amd::PerfCounterCommand& vcmd) {
palPerf = counter->iPerf();
// Find the state and sends the command to PAL
if (vcmd.getState() == amd::PerfCounterCommand::Begin) {
- Pal::SetClockModeInput input;
- Pal::SetClockModeOutput output = {};
state_.perfCounterEnabled_ = true;
- input.clockMode = Pal::DeviceClockMode::Profiling;
- dev().iDev()->SetClockMode(input, &output);
GpuEvent event;
eventBegin(MainEngine);
iCmd()->CmdBeginPerfExperiment(palPerf);