Renamed API amdsmi_dev_get_overdrive_level

to amdsmi_get_gpu_overdrive_level

grep -rli 'amdsmi_dev_get_overdrive_level' * | xargs -i@ sed -i
's/amdsmi_dev_get_overdrive_level/amdsmi_get_gpu_overdrive_level/g' @

Change-Id: Id33a4544a2f2fd9d77de601addcf4e45d09d65d1
Этот коммит содержится в:
Deepak Mewar authored and Naveen Krishna Chatradhi committed 2023-05-11 10:59:00 -04:00
1 родитель d83dc2b005
Коммит 78ce4979e1
10 files changed
+20 -20

No files matched your search

+3 -3
Просмотреть файл
@@ -2011,7 +2011,7 @@ try:
except AmdSmiException as e:
print(e)
```
## amdsmi_dev_get_overdrive_level
## amdsmi_get_gpu_overdrive_level
Description: Get the overdrive percent associated with the device with provided
device handle
@@ -2020,7 +2020,7 @@ Input parameters:
Output: Overdrive percentage as integer
Exceptions that can be thrown by `amdsmi_dev_get_overdrive_level` function:
Exceptions that can be thrown by `amdsmi_get_gpu_overdrive_level` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -2033,7 +2033,7 @@ try:
print("No GPUs on machine")
else:
for device in devices:
od_level = amdsmi_dev_get_overdrive_level(dev)
od_level = amdsmi_get_gpu_overdrive_level(dev)
print(od_level)
except AmdSmiException as e:
print(e)