XGMI Functions

XGMI Functions#

AMD SMI: XGMI Functions
XGMI Functions

Functions

amdsmi_status_t amdsmi_gpu_xgmi_error_status (amdsmi_processor_handle processor_handle, amdsmi_xgmi_status_t *status)
 Retrieve the XGMI error status for a device. It is not supported on virtual machine guest. More...
 
amdsmi_status_t amdsmi_reset_gpu_xgmi_error (amdsmi_processor_handle processor_handle)
 Reset the XGMI error status for a device. It is not supported on virtual machine guest. More...
 

Detailed Description

These functions are used to configure, query and control XGMI.

Function Documentation

◆ amdsmi_gpu_xgmi_error_status()

amdsmi_status_t amdsmi_gpu_xgmi_error_status ( amdsmi_processor_handle  processor_handle,
amdsmi_xgmi_status_t status 
)

Retrieve the XGMI error status for a device. It is not supported on virtual machine guest.

Platform:
gpu_bm_linux

Given a processor handle processor_handle, and a pointer to an amdsmi_xgmi_status_t status, this function will write the current XGMI error state amdsmi_xgmi_status_t for the device processor_handle to the memory pointed to by status.

Parameters
[in]processor_handlea processor handle
[in,out]statusA pointer to an amdsmi_xgmi_status_t to which the XGMI error state should be written If this parameter is nullptr, this function will return AMDSMI_STATUS_INVAL if the function is supported with the provided, arguments and AMDSMI_STATUS_NOT_SUPPORTED if it is not supported with the provided arguments.
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail

◆ amdsmi_reset_gpu_xgmi_error()

amdsmi_status_t amdsmi_reset_gpu_xgmi_error ( amdsmi_processor_handle  processor_handle)

Reset the XGMI error status for a device. It is not supported on virtual machine guest.

Platform:
gpu_bm_linux

Given a processor handle processor_handle, this function will reset the current XGMI error state amdsmi_xgmi_status_t for the device processor_handle to amdsmi_xgmi_status_t::AMDSMI_XGMI_STATUS_NO_ERRORS

Parameters
[in]processor_handlea processor handle
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail