Clock, Power and Performance Control#
Functions | |
amdsmi_status_t | amdsmi_dev_set_perf_level (amdsmi_device_handle device_handle, amdsmi_dev_perf_level_t perf_lvl) |
Set the PowerPlay performance level associated with the device with provided device handle with the provided value. More... | |
amdsmi_status_t | amdsmi_dev_set_perf_level_v1 (amdsmi_device_handle device_handle, amdsmi_dev_perf_level_t perf_lvl) |
Set the PowerPlay performance level associated with the device with provided device handle with the provided value. More... | |
amdsmi_status_t | amdsmi_dev_set_overdrive_level (amdsmi_device_handle device_handle, uint32_t od) |
Set the overdrive percent associated with the device with provided device handle with the provided value. See details for WARNING. More... | |
amdsmi_status_t | amdsmi_dev_set_overdrive_level_v1 (amdsmi_device_handle device_handle, uint32_t od) |
Set the overdrive percent associated with the device with provided device handle with the provided value. See details for WARNING. More... | |
amdsmi_status_t | amdsmi_dev_set_clk_freq (amdsmi_device_handle device_handle, amdsmi_clk_type_t clk_type, uint64_t freq_bitmask) |
Control the set of allowed frequencies that can be used for the specified clock. More... | |
Detailed Description
These functions provide control over clock frequencies, power and performance.
Function Documentation
◆ amdsmi_dev_set_perf_level()
amdsmi_status_t amdsmi_dev_set_perf_level | ( | amdsmi_device_handle | device_handle, |
amdsmi_dev_perf_level_t | perf_lvl | ||
) |
Set the PowerPlay performance level associated with the device with provided device handle with the provided value.
- Deprecated:
- :: amdsmi_dev_set_perf_level_v1() is preferred, with an interface that more closely matches the rest of the amd_smi API.
Given a device handle device_handle
and an amdsmi_dev_perf_level_t perf_level
, this function will set the PowerPlay performance level for the device to the value perf_lvl
.
- Note
- This function requires root access
- Parameters
-
[in] device_handle a device handle [in] perf_lvl the value to which the performance level should be set
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_dev_set_perf_level_v1()
amdsmi_status_t amdsmi_dev_set_perf_level_v1 | ( | amdsmi_device_handle | device_handle, |
amdsmi_dev_perf_level_t | perf_lvl | ||
) |
Set the PowerPlay performance level associated with the device with provided device handle with the provided value.
Given a device handle device_handle
and an amdsmi_dev_perf_level_t perf_level
, this function will set the PowerPlay performance level for the device to the value perf_lvl
.
- Note
- This function requires root access
- Parameters
-
[in] device_handle a device handle [in] perf_lvl the value to which the performance level should be set
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_dev_set_overdrive_level()
amdsmi_status_t amdsmi_dev_set_overdrive_level | ( | amdsmi_device_handle | device_handle, |
uint32_t | od | ||
) |
Set the overdrive percent associated with the device with provided device handle with the provided value. See details for WARNING.
- Deprecated:
- This function is deprecated. :: amdsmi_dev_set_overdrive_level_v1 has the same functionaltiy, with an interface that more closely matches the rest of the amd_smi API.
Given a device handle device_handle
and an overdrive level od
, this function will set the overdrive level for the device to the value od
. The overdrive level is an integer value between 0 and 20, inclusive, which represents the overdrive percentage; e.g., a value of 5 specifies an overclocking of 5%.
The overdrive level is specific to the gpu system clock.
The overdrive level is the percentage above the maximum Performance Level to which overclocking will be limited. The overclocking percentage does not apply to clock speeds other than the maximum. This percentage is limited to 20%.
******WARNING****** Operating your AMD GPU outside of official AMD specifications or outside of factory settings, including but not limited to the conducting of overclocking (including use of this overclocking software, even if such software has been directly or indirectly provided by AMD or otherwise affiliated in any way with AMD), may cause damage to your AMD GPU, system components and/or result in system failure, as well as cause other problems. DAMAGES CAUSED BY USE OF YOUR AMD GPU OUTSIDE OF OFFICIAL AMD SPECIFICATIONS OR OUTSIDE OF FACTORY SETTINGS ARE NOT COVERED UNDER ANY AMD PRODUCT WARRANTY AND MAY NOT BE COVERED BY YOUR BOARD OR SYSTEM MANUFACTURER'S WARRANTY. Please use this utility with caution.
- Parameters
-
[in] device_handle a device handle [in] od the value to which the overdrive level should be set
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_dev_set_overdrive_level_v1()
amdsmi_status_t amdsmi_dev_set_overdrive_level_v1 | ( | amdsmi_device_handle | device_handle, |
uint32_t | od | ||
) |
Set the overdrive percent associated with the device with provided device handle with the provided value. See details for WARNING.
Given a device handle device_handle
and an overdrive level od
, this function will set the overdrive level for the device to the value od
. The overdrive level is an integer value between 0 and 20, inclusive, which represents the overdrive percentage; e.g., a value of 5 specifies an overclocking of 5%.
The overdrive level is specific to the gpu system clock.
The overdrive level is the percentage above the maximum Performance Level to which overclocking will be limited. The overclocking percentage does not apply to clock speeds other than the maximum. This percentage is limited to 20%.
******WARNING****** Operating your AMD GPU outside of official AMD specifications or outside of factory settings, including but not limited to the conducting of overclocking (including use of this overclocking software, even if such software has been directly or indirectly provided by AMD or otherwise affiliated in any way with AMD), may cause damage to your AMD GPU, system components and/or result in system failure, as well as cause other problems. DAMAGES CAUSED BY USE OF YOUR AMD GPU OUTSIDE OF OFFICIAL AMD SPECIFICATIONS OR OUTSIDE OF FACTORY SETTINGS ARE NOT COVERED UNDER ANY AMD PRODUCT WARRANTY AND MAY NOT BE COVERED BY YOUR BOARD OR SYSTEM MANUFACTURER'S WARRANTY. Please use this utility with caution.
- Note
- This function requires root access
- Parameters
-
[in] device_handle a device handle [in] od the value to which the overdrive level should be set
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_dev_set_clk_freq()
amdsmi_status_t amdsmi_dev_set_clk_freq | ( | amdsmi_device_handle | device_handle, |
amdsmi_clk_type_t | clk_type, | ||
uint64_t | freq_bitmask | ||
) |
Control the set of allowed frequencies that can be used for the specified clock.
Given a device handle device_handle
, a clock type clk_type
, and a 64 bit bitmask freq_bitmask
, this function will limit the set of allowable frequencies. If a bit in freq_bitmask
has a value of 1, then the frequency (as ordered in an amdsmi_frequencies_t returned by amdsmi_dev_get_gpu_clk_freq()) corresponding to that bit index will be allowed.
This function will change the performance level to AMDSMI_DEV_PERF_LEVEL_MANUAL in order to modify the set of allowable frequencies. Caller will need to set to AMDSMI_DEV_PERF_LEVEL_AUTO in order to get back to default state.
All bits with indices greater than or equal to amdsmi_frequencies_t::num_supported will be ignored.
- Note
- This function requires root access
- Parameters
-
[in] device_handle a device handle [in] clk_type the type of clock for which the set of frequencies will be modified [in] freq_bitmask A bitmask indicating the indices of the frequencies that are to be enabled (1) and disabled (0). Only the lowest amdsmi_frequencies_t.num_supported bits of this mask are relevant.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail