Renamed API amdsmi_get_process_info

to amdsmi_get_gpu_process_info

grep -rli 'amdsmi_get_process_info' * | xargs -i@ sed -i
's/amdsmi_get_process_info/amdsmi_get_gpu_process_info/g' @

Change-Id: I8f050ed59c926a821894780f9036b9f52c48ef88


[ROCm/amdsmi commit: 64b258ae84]
This commit is contained in:
Deepak Mewar
2023-02-27 01:34:28 -05:00
committed by Naveen Krishna Chatradhi
parent e92d12ebbb
commit edd17ebe30
7 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -837,7 +837,7 @@ try:
except AmdSmiException as e:
print(e)
```
## amdsmi_get_process_info
## amdsmi_get_gpu_process_info
Description: Returns the info for the given process
Input parameters:
@@ -855,7 +855,7 @@ Field | Description
`engine_usage`| <table><thead><tr> <th> Subfield </th> <th> Description</th> </tr></thead><tbody><tr><td>`gfx`</td><td>GFX engine usage in ns</td></tr><tr><td>`compute`</td><td>Compute engine usage in ns</td></tr><tr><td>`dma`</td><td>DMA engine usage in ns </td></tr><tr><td>`enc`</td><td>Encode engine usage in ns</td></tr><tr><td>`dec`</td><td>Decode engine usage in ns</td></tr></tbody></table>
`memory_usage`| <table><thead><tr> <th> Subfield </th> <th> Description</th> </tr></thead><tbody><tr><td>`gtt_mem`</td><td>GTT memory usage</td></tr><tr><td>`cpu_mem`</td><td>CPU memory usage</td></tr><tr><td>`vram_mem`</td><td>VRAM memory usage</td></tr> </tbody></table>
Exceptions that can be thrown by `amdsmi_get_process_info` function:
Exceptions that can be thrown by `amdsmi_get_gpu_process_info` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -870,7 +870,7 @@ try:
for device in devices:
processes = amdsmi_get_gpu_process_list(device)
for process in processes:
print(amdsmi_get_process_info(device, process))
print(amdsmi_get_gpu_process_info(device, process))
except AmdSmiException as e:
print(e)
```