Renamed APIs

1) amdsmi_dev_set_overdrive_level to amdsmi_set_gpu_overdrive_level
2) amdsmi_dev_set_overdrive_level_v1 to amdsmi_set_gpu_overdrive_level_v1

grep -rli 'amdsmi_dev_set_overdrive_level' * | xargs -i@ sed -i
's/amdsmi_dev_set_overdrive_level/amdsmi_set_gpu_overdrive_level/g' @

Change-Id: Id6934e5b0962c9262cca041bdfdf02c60f69573b
This commit is contained in:
Deepak Mewar authored and Naveen Krishna Chatradhi committed 2023-05-11 11:00:45 -04:00
1 parent ced22230c4
commit e687a72235
9 files changed
+34 -34

No files matched your search

+6 -6
View File
@@ -2576,7 +2576,7 @@ try:
except AmdSmiException as e:
print(e)
```
## amdsmi_dev_set_overdrive_level_v1
## amdsmi_set_gpu_overdrive_level_v1
Description: Set the overdrive percent associated with the device with provided
device handle with the provided value
@@ -2586,7 +2586,7 @@ Input parameters:
Output: None
Exceptions that can be thrown by ` amdsmi_dev_set_overdrive_level_v1` function:
Exceptions that can be thrown by ` amdsmi_set_gpu_overdrive_level_v1` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -2599,11 +2599,11 @@ try:
print("No GPUs on machine")
else:
for device in devices:
amdsmi_dev_set_overdrive_level_v1(device, 0)
amdsmi_set_gpu_overdrive_level_v1(device, 0)
except AmdSmiException as e:
print(e)
```
## amdsmi_dev_set_overdrive_level
## amdsmi_set_gpu_overdrive_level
Description: **deprecated** Set the overdrive percent associated with the
device with provided device handle with the provided value
@@ -2613,7 +2613,7 @@ Input parameters:
Output: None
Exceptions that can be thrown by ` amdsmi_dev_set_overdrive_level` function:
Exceptions that can be thrown by ` amdsmi_set_gpu_overdrive_level` function:
* `AmdSmiLibraryException`
* `AmdSmiRetryException`
* `AmdSmiParameterException`
@@ -2626,7 +2626,7 @@ try:
print("No GPUs on machine")
else:
for device in devices:
amdsmi_dev_set_overdrive_level(device, 0)
amdsmi_set_gpu_overdrive_level(device, 0)
except AmdSmiException as e:
print(e)
```