diff --git a/projects/amdsmi/py-interface/README.md b/projects/amdsmi/py-interface/README.md index 4199f1a906..19454121ae 100644 --- a/projects/amdsmi/py-interface/README.md +++ b/projects/amdsmi/py-interface/README.md @@ -882,24 +882,13 @@ except AmdSmiException as e: ### amdsmi_get_gpu_process_list -Description: Returns the list of processes for the given GPU. -The list is of type `amdsmi_proc_info_t` and holds information about the running process. +Description: Returns the list of processes running on the target GPU. Input parameters: * `processor_handle` device which to query -Output: List of process processes with fields - -Output: Dictionary with fields - -Field | Description ----|--- -`name` | Name of process -`pid` | Process ID -`mem` | Process memory usage -`engine_usage` |
Subfield Description
`gfx`GFX engine usage in ns
`enc`Encode engine usage in ns
-`memory_usage` |
Subfield Description
`gtt_mem`GTT memory usage
`cpu_mem`CPU memory usage
`vram_mem`VRAM memory usage
+Output: List of `amdsmi_proc_info_t` process objects running on the target GPU; can be empty Exceptions that can be thrown by `amdsmi_get_gpu_process_list` function: @@ -921,7 +910,50 @@ try: print("No processes running on this GPU") else: for process in processes: - print(process) + print(amdsmi_get_gpu_process_info(device, process)) +except AmdSmiException as e: + print(e) +``` + +### amdsmi_get_gpu_process_info + +Description: Returns info about process given the target GPU and the corresponding `amdsmi_proc_info_t` object + +Input parameters: + +* `processor_handle` device which to query + +Output: Dictionary with fields + +Field | Description +---|--- +`name` | Name of process +`pid` | Process ID +`mem` | Process memory usage +`engine_usage` |
Subfield Description
`gfx`GFX engine usage in ns
`enc`Encode engine usage in ns
+`memory_usage` |
Subfield Description
`gtt_mem`GTT memory usage
`cpu_mem`CPU memory usage
`vram_mem`VRAM memory usage