Process information#
Process information
Functions | |
amdsmi_status_t | amdsmi_get_process_list (amdsmi_device_handle device_handle, amdsmi_process_handle *list, uint32_t *max_processes) |
Returns the list of processes running on a given GPU including itself. More... | |
amdsmi_status_t | amdsmi_get_process_info (amdsmi_device_handle device_handle, amdsmi_process_handle process, amdsmi_proc_info_t *info) |
Returns the process information of a given process. Engine usage show how much time the process spend using these engines in ns. More... | |
Detailed Description
Function Documentation
◆ amdsmi_get_process_list()
amdsmi_status_t amdsmi_get_process_list | ( | amdsmi_device_handle | device_handle, |
amdsmi_process_handle * | list, | ||
uint32_t * | max_processes | ||
) |
Returns the list of processes running on a given GPU including itself.
- Note
- The user provides a buffer to store the list and the maximum number of processes that can be returned. If the user sets max_processes to 0, the total number of processes will be returned.
- Parameters
-
[in] device_handle Device which to query [out] list Reference to a user-provided buffer where the process list will be returned. This buffer must contain at least max_processes entries of type smi_process_handle. Must be allocated by user. [in,out] max_processes Reference to the size of the list buffer in number of elements. Returns the return number of elements in list or the number of running processes if equal to 0.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_get_process_info()
amdsmi_status_t amdsmi_get_process_info | ( | amdsmi_device_handle | device_handle, |
amdsmi_process_handle | process, | ||
amdsmi_proc_info_t * | info | ||
) |
Returns the process information of a given process. Engine usage show how much time the process spend using these engines in ns.
- Parameters
-
[in] device_handle Device which to query [in] process Handle of process to query. [out] info Reference to a process information structure where to return information. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail