[SWDEV-535200] Remove deprecated function amdsmi_get_power_info_v2 (#397)

Signed-off-by: josnarlo <Joseph.Narlo@amd.com>
Signed-off-by: Narlo, Joseph <Joseph.Narlo@amd.com>
Esse commit está contido em:
Narlo, Joseph authored and GitHub committed 2025-05-28 18:09:13 -05:00
1 pai 7b3c85e970
commit 38a1fadf44
7 files changed
+11 -100

No files matched your search

+3 -6
Ver Arquivo
@@ -2651,11 +2651,8 @@ def amdsmi_get_gpu_driver_info(
return driver_info
# NOTE: this uses amdsmi_get_power_info_v2 under the hood because the C api
# needs to be backwards compatible
def amdsmi_get_power_info(
processor_handle: amdsmi_wrapper.amdsmi_processor_handle,
sensor_ind: int = 0
processor_handle: amdsmi_wrapper.amdsmi_processor_handle
) -> Dict[str, ctypes.c_uint32]:
if not isinstance(processor_handle, amdsmi_wrapper.amdsmi_processor_handle):
raise AmdSmiParameterException(
@@ -2664,8 +2661,8 @@ def amdsmi_get_power_info(
power_measure = amdsmi_wrapper.amdsmi_power_info_t()
_check_res(
amdsmi_wrapper.amdsmi_get_power_info_v2(
processor_handle, sensor_ind, ctypes.byref(power_measure)
amdsmi_wrapper.amdsmi_get_power_info(
processor_handle, ctypes.byref(power_measure)
)
)