P4 to Git Change 1702079 by jujiang@JJ-OCL-w8 on 2018/11/02 16:01:11
SWDEV-155310 - Request for OpenCL extension function to set stable pstate Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#60 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_profile_amd.cpp#5 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_profile_amd.h#3 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#324 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#600 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#170 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#115 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#35 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#102 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#32 edit
This commit is contained in:
@@ -2247,4 +2247,9 @@ cl_int Device::hwDebugManagerInit(amd::Context* context, uintptr_t messageStorag
|
||||
return status;
|
||||
}
|
||||
|
||||
bool Device::SetClockMode(const cl_set_device_clock_mode_input_amd setClockModeInput, cl_set_device_clock_mode_output_amd* pSetClockModeOutput) {
|
||||
bool result = true;
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace gpu
|
||||
|
||||
@@ -111,6 +111,8 @@ class NullDevice : public amd::Device {
|
||||
}
|
||||
virtual void svmFree(void* ptr) const { return; }
|
||||
|
||||
virtual bool SetClockMode(const cl_set_device_clock_mode_input_amd setClockModeInput, cl_set_device_clock_mode_output_amd* pSetClockModeOutput) { return true; }
|
||||
|
||||
protected:
|
||||
bool usePal() const {
|
||||
return (calTarget_ == CAL_TARGET_GREENLAND || calTarget_ == CAL_TARGET_RAVEN ||
|
||||
@@ -410,6 +412,8 @@ class Device : public NullDevice, public CALGSLDevice {
|
||||
virtual bool validateKernel(const amd::Kernel& kernel, //!< AMD kernel object
|
||||
const device::VirtualDevice* vdev);
|
||||
|
||||
virtual bool SetClockMode(const cl_set_device_clock_mode_input_amd setClockModeInput, cl_set_device_clock_mode_output_amd* pSetClockModeOutput);
|
||||
|
||||
//! Retrieves information about free memory on a GPU device
|
||||
virtual bool globalFreeMemory(size_t* freeMemory) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user