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:
committed by
Naveen Krishna Chatradhi
parent
8d7b6ee5d1
commit
575856eeee
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user