From d847aacfcb9217079ed48a89086645ca98543223 Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 14 Feb 2019 19:50:43 -0500 Subject: [PATCH] P4 to Git Change 1744206 by jujiang@JJ-OCL-w8 on 2019/02/14 19:35:05 SWDEV-169154 - Implement OpenCL extension function to set stable pstate on ORCA stack -Disable StablePstate feature in linux brahma stack Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#187 edit [ROCm/clr commit: 28fd6ede82101abcf78c6251706a96fabdbfd4c1] --- .../clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp index 24cb4c6ea4..3569cf6442 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp @@ -1627,11 +1627,15 @@ bool CALGSLDevice::gslSetClockMode(GSLClockModeInfo * clockModeInfo) { bool result = false; +#ifdef _WIN32 const void* requestClockInfo = reinterpret_cast(clockModeInfo); uint32 uReturn = m_adp->requestClockModeInfo((void*)requestClockInfo); if(uReturn == GSL_SETCLOCK_SUCCESS || uReturn == GSL_SETCLOCK_QUERY_ONLY) { result = true; } +#else + result = true; +#endif return result; } \ No newline at end of file