P4 to Git Change 1742993 by jujiang@JJ-OCL-w8 on 2019/02/12 15:51:01

SWDEV-169154 - Implement OpenCL extension function to set stable pstate on ORCA stack

	-Add StablePstate feature in Orca stack

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#603 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#186 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.h#65 edit
This commit is contained in:
foreman
2019-02-12 16:24:30 -05:00
parent 4a34477357
commit 803bb39eba
3 changed files with 20 additions and 0 deletions
+6
View File
@@ -2233,6 +2233,12 @@ cl_int Device::hwDebugManagerInit(amd::Context* context, uintptr_t messageStorag
bool Device::SetClockMode(const cl_set_device_clock_mode_input_amd setClockModeInput, cl_set_device_clock_mode_output_amd* pSetClockModeOutput) {
bool result = true;
static const bool bValidate = true;
PerformAdapterInitialization(bValidate);
GSLClockModeInfo clockModeInfo = {};
clockModeInfo.clockmode = static_cast<GSLClockMode>(setClockModeInput.clock_mode);
result = gslSetClockMode(&clockModeInfo);
CloseInitializedAdapter(bValidate);
return result;
}