GPU Monitoring#
GPU Monitoring
Functions | |
amdsmi_status_t | amdsmi_get_gpu_activity (amdsmi_device_handle device_handle, amdsmi_engine_usage_t *info) |
Returns the current usage of the GPU engines (GFX, MM and MEM). Each usage is reported as a percentage from 0-100%. More... | |
amdsmi_status_t | amdsmi_get_power_measure (amdsmi_device_handle device_handle, amdsmi_power_measure_t *info) |
Returns the current power and voltage of the GPU. The voltage is in units of mV and the power in units of W. More... | |
amdsmi_status_t | amdsmi_get_clock_measure (amdsmi_device_handle device_handle, amdsmi_clk_type_t clk_type, amdsmi_clk_measure_t *info) |
Returns the measurements of the clocks in the GPU for the GFX and multimedia engines and Memory. This call reports the averages over 1s in MHz. More... | |
amdsmi_status_t | amdsmi_get_vram_usage (amdsmi_device_handle device_handle, amdsmi_vram_info_t *info) |
Returns the VRAM usage (both total and used memory) in MegaBytes. More... | |
Detailed Description
Function Documentation
◆ amdsmi_get_gpu_activity()
amdsmi_status_t amdsmi_get_gpu_activity | ( | amdsmi_device_handle | device_handle, |
amdsmi_engine_usage_t * | info | ||
) |
Returns the current usage of the GPU engines (GFX, MM and MEM). Each usage is reported as a percentage from 0-100%.
- Parameters
-
[in] device_handle Device which to query [out] info Reference to the gpu engine usage structure. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_get_power_measure()
amdsmi_status_t amdsmi_get_power_measure | ( | amdsmi_device_handle | device_handle, |
amdsmi_power_measure_t * | info | ||
) |
Returns the current power and voltage of the GPU. The voltage is in units of mV and the power in units of W.
- Parameters
-
[in] device_handle Device which to query [out] info Reference to the gpu power structure. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_get_clock_measure()
amdsmi_status_t amdsmi_get_clock_measure | ( | amdsmi_device_handle | device_handle, |
amdsmi_clk_type_t | clk_type, | ||
amdsmi_clk_measure_t * | info | ||
) |
Returns the measurements of the clocks in the GPU for the GFX and multimedia engines and Memory. This call reports the averages over 1s in MHz.
- Parameters
-
[in] device_handle Device which to query [in] clk_type Enum representing the clock type to query. [out] info Reference to the gpu clock structure. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_get_vram_usage()
amdsmi_status_t amdsmi_get_vram_usage | ( | amdsmi_device_handle | device_handle, |
amdsmi_vram_info_t * | info | ||
) |
Returns the VRAM usage (both total and used memory) in MegaBytes.
- Parameters
-
[in] device_handle Device which to query [out] info Reference to vram information. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail