Renamed API amdsmi_dev_get_busy_percent to

amdsmi_get_busy_percent

grep -rli 'amdsmi_dev_get_busy_percent' * | xargs -i@ sed -i
's/amdsmi_dev_get_busy_percent/amdsmi_get_busy_percent/g' @

Change-Id: I02ff8f86d2e7a6c38e7f56d40a07b27e90835152
This commit is contained in:
Deepak Mewar
2023-02-25 08:30:34 -05:00
committed by Naveen Krishna Chatradhi
parent 8d7b6ee5d1
commit 575856eeee
9 changed files with 17 additions and 17 deletions
+3 -3
View File
@@ -1892,7 +1892,7 @@ try:
except AmdSmiException as e:
print(e)
```
## amdsmi_dev_get_busy_percent
## amdsmi_get_busy_percent
Description: Get percentage of time device is busy doing any processing
Input parameters:
@@ -1900,7 +1900,7 @@ Input parameters:
Output: How busy the device is (as percentage of time)
Exceptions that can be thrown by `amdsmi_dev_get_busy_percent` function:
Exceptions that can be thrown by `amdsmi_get_busy_percent` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -1913,7 +1913,7 @@ try:
print("No GPUs on machine")
else:
for device in devices:
busy = amdsmi_dev_get_busy_percent(dev)
busy = amdsmi_get_busy_percent(dev)
print(busy)
except AmdSmiException as e:
print(e)