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
[ROCm/amdsmi commit: 8d7b6ee5d1]
This commit is contained in:
committed by
Naveen Krishna Chatradhi
parent
745c085024
commit
bea3335941
@@ -1519,7 +1519,7 @@ def amdsmi_set_perf_determinism_mode(
|
||||
)
|
||||
|
||||
|
||||
def amdsmi_dev_set_fan_speed(
|
||||
def amdsmi_set_gpu_fan_speed(
|
||||
processor_handle: amdsmi_wrapper.amdsmi_processor_handle, sensor_idx: int, fan_speed: int
|
||||
):
|
||||
if not isinstance(processor_handle, amdsmi_wrapper.amdsmi_processor_handle):
|
||||
@@ -1534,7 +1534,7 @@ def amdsmi_dev_set_fan_speed(
|
||||
fan_speed = ctypes.c_uint64(fan_speed)
|
||||
|
||||
_check_res(
|
||||
amdsmi_wrapper.amdsmi_dev_set_fan_speed(
|
||||
amdsmi_wrapper.amdsmi_set_gpu_fan_speed(
|
||||
processor_handle, sensor_idx, fan_speed)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user