ASIC & Board Static Information

ASIC & Board Static Information#

AMD SMI: 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_pcie_info (amdsmi_processor_handle processor_handle, amdsmi_pcie_info_t *info)
 Returns the PCIe info for the GPU. 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_handleDevice which to query
[out]infoReference 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_handlePF of a processor for which to query
[out]infoReference 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_handleDevice which to query
[out]infoReference 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_handleDevice which to query
[in]sensor_indA 0-based sensor index. Normally, this will be 0. If a device has more than one sensor, it could be greater than 0.
[out]infoReference 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_pcie_info()

amdsmi_status_t amdsmi_get_pcie_info ( amdsmi_processor_handle  processor_handle,
amdsmi_pcie_info_t info 
)

Returns the PCIe info for the GPU.

Parameters
[in]processor_handleDevice which to query
[out]infoReference to the PCIe information returned by the library. 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_handleDevice which to query
[out]infoReference to xgmi information structure. Must be allocated by user.
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail