P4 to Git Change 1746163 by jujiang@JJ-OCL-w8 on 2019/02/20 11:17:07
SWDEV-169154 - Implement OpenCL extension function to set stable pstate on ORCA stack
-Enable StablePstate feature in linux brahma stack
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#189 edit
[ROCm/clr commit: 7b958148e2]
This commit is contained in:
@@ -1635,15 +1635,11 @@ bool
|
||||
CALGSLDevice::gslSetClockMode(GSLClockModeInfo * clockModeInfo)
|
||||
{
|
||||
bool result = false;
|
||||
#ifdef _WIN32
|
||||
const void* requestClockInfo = reinterpret_cast<const void*>(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;
|
||||
}
|
||||
Reference in New Issue
Block a user