ASIC & Board Static Information#
ASIC & Board Static Information
Functions | |
amdsmi_status_t | amdsmi_get_gpu_asic_info (amdsmi_processor_handle processor_handle, amdsmi_asic_info_t *info) |
Returns the ASIC information for the device. More... | |
amdsmi_status_t | amdsmi_get_gpu_vram_info (amdsmi_processor_handle processor_handle, amdsmi_vram_info_t *info) |
Returns vram info. More... | |
amdsmi_status_t | amdsmi_get_gpu_board_info (amdsmi_processor_handle processor_handle, amdsmi_board_info_t *info) |
Returns the board part number and board information for the requested device. More... | |
amdsmi_status_t | amdsmi_get_power_cap_info (amdsmi_processor_handle processor_handle, uint32_t sensor_ind, amdsmi_power_cap_info_t *info) |
Returns the power caps as currently configured in the system. It is not supported on virtual machine guest. More... | |
amdsmi_status_t | amdsmi_get_xgmi_info (amdsmi_processor_handle processor_handle, amdsmi_xgmi_info_t *info) |
Returns XGMI information for the GPU. More... | |
Detailed Description
Function Documentation
◆ amdsmi_get_gpu_asic_info()
amdsmi_status_t amdsmi_get_gpu_asic_info | ( | amdsmi_processor_handle | processor_handle, |
amdsmi_asic_info_t * | info | ||
) |
Returns the ASIC information for the device.
This function returns ASIC information such as the product name, the vendor ID, the subvendor ID, the device ID, the revision ID and the serial number.
- Parameters
-
[in] processor_handle Device which to query [out] info Reference to static asic information structure. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_get_gpu_vram_info()
amdsmi_status_t amdsmi_get_gpu_vram_info | ( | amdsmi_processor_handle | processor_handle, |
amdsmi_vram_info_t * | info | ||
) |
Returns vram info.
- Parameters
-
[in] processor_handle PF of a processor for which to query [out] info Reference to vram info structure Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_get_gpu_board_info()
amdsmi_status_t amdsmi_get_gpu_board_info | ( | amdsmi_processor_handle | processor_handle, |
amdsmi_board_info_t * | info | ||
) |
Returns the board part number and board information for the requested device.
- Parameters
-
[in] processor_handle Device which to query [out] info Reference to board info structure. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_get_power_cap_info()
amdsmi_status_t amdsmi_get_power_cap_info | ( | amdsmi_processor_handle | processor_handle, |
uint32_t | sensor_ind, | ||
amdsmi_power_cap_info_t * | info | ||
) |
Returns the power caps as currently configured in the system. It is not supported on virtual machine guest.
- Parameters
-
[in] processor_handle Device which to query [in] sensor_ind A 0-based sensor index. Normally, this will be 0. If a device has more than one sensor, it could be greater than 0. [out] info Reference to power caps information structure. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_get_xgmi_info()
amdsmi_status_t amdsmi_get_xgmi_info | ( | amdsmi_processor_handle | processor_handle, |
amdsmi_xgmi_info_t * | info | ||
) |
Returns XGMI information for the GPU.
- Parameters
-
[in] processor_handle Device which to query [out] info Reference to xgmi information structure. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail