Renamed API amdsmi_dev_set_fan_speed to
amdsmi_set_gpu_fan_speed grep -rli 'amdsmi_dev_set_fan_speed' * | xargs -i@ sed -i 's/amdsmi_dev_set_fan_speed/amdsmi_set_gpu_fan_speed/g' @ Change-Id: I27a321a0e1182b4cc94d18cff5245df67c4fee31
This commit is contained in:
committed by
Naveen Krishna Chatradhi
orang tua
7c82c5ec79
melakukan
8d7b6ee5d1
@@ -2490,7 +2490,7 @@ try:
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
## amdsmi_dev_set_fan_speed
|
||||
## amdsmi_set_gpu_fan_speed
|
||||
Description: Set the fan speed for the specified device with the provided speed,
|
||||
in RPMs
|
||||
|
||||
@@ -2501,7 +2501,7 @@ Input parameters:
|
||||
|
||||
Output: None
|
||||
|
||||
Exceptions that can be thrown by `amdsmi_dev_set_fan_speed` function:
|
||||
Exceptions that can be thrown by `amdsmi_set_gpu_fan_speed` function:
|
||||
* `AmdSmiLibraryException`
|
||||
* `AmdSmiRetryException`
|
||||
* `AmdSmiParameterException`
|
||||
@@ -2514,7 +2514,7 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
amdsmi_dev_set_fan_speed(device, 0, 1333)
|
||||
amdsmi_set_gpu_fan_speed(device, 0, 1333)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user