2
0

Renamed API amdsmi_get_compute_process_gpus

to amdsmi_get_gpu_compute_process_gpus

grep -rli 'amdsmi_get_compute_process_gpus' * | xargs -i@ sed -i
's/amdsmi_get_compute_process_gpus/amdsmi_get_gpu_compute_process_gpus/g' @

Change-Id: I230bbf85e96983f9e0d2e3c61464c2bf4b353a95
Este cometimento está contido em:
Deepak Mewar
2023-02-27 01:44:06 -05:00
cometido por Naveen Krishna Chatradhi
ascendente f3854b3d5f
cometimento 26f8190cb4
8 ficheiros modificados com 16 adições e 16 eliminações
+3 -3
Ver ficheiro
@@ -2799,7 +2799,7 @@ except AmdSmiException as e:
print(e)
```
## amdsmi_get_compute_process_gpus
## amdsmi_get_gpu_compute_process_gpus
Description: Get the device indices currently being used by a process
Input parameters:
@@ -2807,7 +2807,7 @@ Input parameters:
Output: List of indices of devices currently being used by the process
Exceptions that can be thrown by `amdsmi_get_compute_process_gpus` function:
Exceptions that can be thrown by `amdsmi_get_gpu_compute_process_gpus` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -2816,7 +2816,7 @@ Example:
```python
try:
pid = 0 # << valid pid here
indices = amdsmi_get_compute_process_gpus(pid)
indices = amdsmi_get_gpu_compute_process_gpus(pid)
print(indices)
except AmdSmiException as e:
print(e)