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_kfd_info (amdsmi_processor_handle processor_handle, amdsmi_kfd_info_t *info) |
Returns the KFD (Kernel Fusion Driver) 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. Power in units of uW. 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.
- Platform:
gpu_bm_linux
host
guest_1vf
guest_mvf
guest_windows
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_kfd_info()
amdsmi_status_t amdsmi_get_gpu_kfd_info | ( | amdsmi_processor_handle | processor_handle, |
amdsmi_kfd_info_t * | info | ||
) |
Returns the KFD (Kernel Fusion Driver) information for the device.
- Platform:
gpu_bm_linux
guest_1vf
guest_mvf
This function returns KFD information populated into the amdsmi_kfd_info_t. This contains the kfd_id and node_id which allow for the ID and index of this device in the KFD.
- Parameters
-
[in] processor_handle Device which to query [out] info Reference to kfd 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.
- Platform:
gpu_bm_linux
host
guest_1vf
guest_mvf
- 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.
- Platform:
gpu_bm_linux
host
guest_1vf
guest_mvf
- 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. Power in units of uW. It is not supported on virtual machine guest.
- Platform:
gpu_bm_linux
host
- 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_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.
- Platform:
gpu_bm_linux
host
guest_1vf
guest_windows
- Parameters
-
[in] processor_handle Device which to query [out] info Reference 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.
- Platform:
- gpu_bm_linux
- 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