Changed power parameter in amdsmi_get_energy_count() to energy_accumulator

Issue linked here: https://github.com/ROCm/amdsmi/issues/38

Signed-off-by: gabrpham <Gabriel.Pham@amd.com>
Change-Id: I622236eb3f0144aefeb6c82d2713b4822bfeeb11
This commit is contained in:
gabrpham
2024-08-29 17:13:21 -05:00
committed by Maisam Arif
parent 3c954e78fc
commit 95ca2b83a1
8 changed files with 36 additions and 29 deletions
+1 -1
View File
@@ -1884,7 +1884,7 @@ class AMDSMICommands():
try:
energy_dict = amdsmi_interface.amdsmi_get_energy_count(args.gpu)
energy = energy_dict['power'] * round(energy_dict['counter_resolution'], 1)
energy = round(energy_dict["energy_accumulator"] * energy_dict["counter_resolution"], 3)
energy /= 1000000
energy = round(energy, 3)