Renamed API amdsmi_dev_get_memory_busy_percent to
amdsmi_get_gpu_memory_busy_percent
grep -rli 'amdsmi_dev_get_memory_busy_percent' * | xargs -i@ sed -i
's/amdsmi_dev_get_memory_busy_percent/amdsmi_get_gpu_memory_busy_percent/g' @
Change-Id: I379d8a31074635cd086c1bb0d0e231d3b352725c
[ROCm/amdsmi commit: ed45afc512]
This commit is contained in:
committed by
Naveen Krishna Chatradhi
parent
cd92afe97e
commit
2dbe69b567
@@ -1688,7 +1688,7 @@ except AmdSmiException as e:
|
||||
```
|
||||
|
||||
|
||||
## amdsmi_dev_get_memory_busy_percent
|
||||
## amdsmi_get_gpu_memory_busy_percent
|
||||
|
||||
Description: Get percentage of time any device memory is being used
|
||||
|
||||
@@ -1698,7 +1698,7 @@ Input parameters:
|
||||
|
||||
Output: percentage of time that any device memory is being used for the specified device.
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_dev_get_memory_busy_percent` function:
|
||||
Exceptions that can be thrown by `amdsmi_get_gpu_memory_busy_percent` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -1711,7 +1711,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
busy_percent = amdsmi_dev_get_memory_busy_percent(device)
|
||||
busy_percent = amdsmi_get_gpu_memory_busy_percent(device)
|
||||
print(busy_percent)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
|
||||
Reference in New Issue
Block a user