Deprecated amdsmi_get_energy_count() power field

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I1b5fe8e278b797458e57dff689e692347901bbfd


[ROCm/amdsmi commit: 8ca2c6e247]
Этот коммит содержится в:
Maisam Arif
2025-01-07 12:45:50 -06:00
родитель b7727b1138
Коммит e32383b6c5
3 изменённых файлов: 3 добавлений и 2 удалений
+2
Просмотреть файл
@@ -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
+1 -1
Просмотреть файл
@@ -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
-1
Просмотреть файл
@@ -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,