Renamed API amdsmi_get_process_list
to amdsmi_get_gpu_process_list
grep -rli 'amdsmi_get_process_list' * | xargs -i@ sed -i
's/amdsmi_get_process_list/amdsmi_get_gpu_process_list/g' @
Change-Id: I230c23aa135e9e11575e73c58355ae444783d1a5
[ROCm/amdsmi commit: c92f18dda1]
Цей коміт міститься в:
зафіксовано
Naveen Krishna Chatradhi
джерело
2e060f2934
коміт
e92d12ebbb
@@ -810,7 +810,7 @@ except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
## amdsmi_get_process_list
|
||||
## amdsmi_get_gpu_process_list
|
||||
Description: Returns the list of processes for the given GPU
|
||||
|
||||
Input parameters:
|
||||
@@ -819,7 +819,7 @@ Input parameters:
|
||||
|
||||
Output: List of process handles found
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_get_process_list` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_process_list` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -832,7 +832,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
processes = amdsmi_get_process_list(device)
|
||||
processes = amdsmi_get_gpu_process_list(device)
|
||||
print(processes)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
@@ -868,7 +868,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
processes = amdsmi_get_process_list(device)
|
||||
processes = amdsmi_get_gpu_process_list(device)
|
||||
for process in processes:
|
||||
print(amdsmi_get_process_info(device, process))
|
||||
except AmdSmiException as e:
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача