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
このコミットが含まれているのは:
Deepak Mewar
2023-02-27 04:14:05 -05:00
committed by Naveen Krishna Chatradhi
コミット e687a72235
9個のファイルの変更34行の追加34行の削除
+6 -6
ファイルの表示
@@ -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)
```