From e32383b6c5109bddf267b1830e23405fd4c1063e Mon Sep 17 00:00:00 2001 From: Maisam Arif Date: Tue, 7 Jan 2025 12:45:50 -0600 Subject: [PATCH] Deprecated amdsmi_get_energy_count() `power` field Signed-off-by: Maisam Arif Change-Id: I1b5fe8e278b797458e57dff689e692347901bbfd [ROCm/amdsmi commit: 8ca2c6e2473c1b46e97964114700c7ec097ebe27] --- projects/amdsmi/CHANGELOG.md | 2 ++ projects/amdsmi/docs/reference/amdsmi-py-api.md | 2 +- projects/amdsmi/py-interface/amdsmi_interface.py | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/amdsmi/CHANGELOG.md b/projects/amdsmi/CHANGELOG.md index ba8036dc0b..df8405017a 100644 --- a/projects/amdsmi/CHANGELOG.md +++ b/projects/amdsmi/CHANGELOG.md @@ -115,6 +115,8 @@ GPU: 0 ### Changed +- **Python API for `amdsmi_get_energy_count()` will change the name for the `power` field to `energy_accumulator`**. + - **Updated API `amdsmi_get_gpu_vram_info()` structure and CLI `amd-smi static --vram`** Updated structure `amdsmi_vram_info_t`: ```C diff --git a/projects/amdsmi/docs/reference/amdsmi-py-api.md b/projects/amdsmi/docs/reference/amdsmi-py-api.md index e1e2bfa9ec..18ebc2368d 100644 --- a/projects/amdsmi/docs/reference/amdsmi-py-api.md +++ b/projects/amdsmi/docs/reference/amdsmi-py-api.md @@ -1528,7 +1528,7 @@ Output: Dictionary with fields Field | Content ---|--- -`power` | counter for energy accumulation since last restart/gpu rest (Deprecating in 6.4) +`power` | counter for energy accumulation since last restart/gpu rest (Deprecated in ROCm 6.4) `energy_accumulator` | counter for energy accumulation since last restart/gpu rest `counter_resolution` | counter resolution `timestamp` | timestamp diff --git a/projects/amdsmi/py-interface/amdsmi_interface.py b/projects/amdsmi/py-interface/amdsmi_interface.py index a607a3c8d4..2ca74a3798 100644 --- a/projects/amdsmi/py-interface/amdsmi_interface.py +++ b/projects/amdsmi/py-interface/amdsmi_interface.py @@ -3272,7 +3272,6 @@ def amdsmi_get_energy_count(processor_handle: amdsmi_wrapper.amdsmi_processor_ha ) return { - 'power': energy_accumulator.value, # deprecating in 6.4 'energy_accumulator': energy_accumulator.value, 'counter_resolution': counter_resolution.value, 'timestamp': timestamp.value,