Renamed API amdsmi_dev_set_power_profile to

amdsmi_set_gpu_power_profile

grep -rli 'amdsmi_dev_set_power_profile' * | xargs -i@ sed -i
's/amdsmi_dev_set_power_profile/amdsmi_set_gpu_power_profile/g' @

Change-Id: I10d7ee19fd86c11bbb7deafefb37df92e78aa2a3
This commit is contained in:
Deepak Mewar
2023-02-25 08:04:42 -05:00
committed by Naveen Krishna Chatradhi
parent 757765a1e3
commit dec22a9b44
9 changed files with 17 additions and 17 deletions
+4 -4
View File
@@ -1466,9 +1466,9 @@ amdsmi_get_energy_count.argtypes = [amdsmi_processor_handle, ctypes.POINTER(ctyp
amdsmi_set_power_cap = _libraries['libamd_smi.so'].amdsmi_set_power_cap
amdsmi_set_power_cap.restype = amdsmi_status_t
amdsmi_set_power_cap.argtypes = [amdsmi_processor_handle, uint32_t, uint64_t]
amdsmi_dev_set_power_profile = _libraries['libamd_smi.so'].amdsmi_dev_set_power_profile
amdsmi_dev_set_power_profile.restype = amdsmi_status_t
amdsmi_dev_set_power_profile.argtypes = [amdsmi_processor_handle, uint32_t, amdsmi_power_profile_preset_masks_t]
amdsmi_set_gpu_power_profile = _libraries['libamd_smi.so'].amdsmi_set_gpu_power_profile
amdsmi_set_gpu_power_profile.restype = amdsmi_status_t
amdsmi_set_gpu_power_profile.argtypes = [amdsmi_processor_handle, uint32_t, amdsmi_power_profile_preset_masks_t]
amdsmi_dev_get_memory_total = _libraries['libamd_smi.so'].amdsmi_dev_get_memory_total
amdsmi_dev_get_memory_total.restype = amdsmi_status_t
amdsmi_dev_get_memory_total.argtypes = [amdsmi_processor_handle, amdsmi_memory_type_t, ctypes.POINTER(ctypes.c_uint64)]
@@ -1881,7 +1881,7 @@ __all__ = \
'amdsmi_dev_set_overdrive_level_v1',
'amdsmi_set_gpu_pci_bandwidth', 'amdsmi_dev_set_perf_level',
'amdsmi_dev_set_perf_level_v1', 'amdsmi_set_power_cap',
'amdsmi_dev_set_power_profile', 'amdsmi_dev_xgmi_error_status',
'amdsmi_set_gpu_power_profile', 'amdsmi_dev_xgmi_error_status',
'amdsmi_processor_handle', 'amdsmi_engine_usage_t',
'amdsmi_error_count_t', 'amdsmi_event_group_t',
'amdsmi_event_group_t__enumvalues', 'amdsmi_event_handle_t',