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
Este cometimento está contido em:
cometido por
Maisam Arif
ascendente
3c954e78fc
cometimento
95ca2b83a1
@@ -1534,7 +1534,8 @@ except AmdSmiException as e:
|
||||
|
||||
### amdsmi_get_energy_count
|
||||
|
||||
Description: Get the energy accumulator counter of the device.
|
||||
Description: Get the energy accumulator counter information of the device.
|
||||
energy_accumulator * counter_resolution = total_energy_consumption in micro-Joules
|
||||
It is not supported on virtual machine guest
|
||||
|
||||
Input parameters:
|
||||
@@ -1545,7 +1546,8 @@ Output: Dictionary with fields
|
||||
|
||||
Field | Content
|
||||
---|---
|
||||
`power` | power
|
||||
`power` | counter for energy accumulation since last restart/gpu rest (Deprecating in 6.4)
|
||||
`energy_accumulator` | counter for energy accumulation since last restart/gpu rest
|
||||
`counter_resolution` | counter resolution
|
||||
`timestamp` | timestamp
|
||||
|
||||
@@ -1564,8 +1566,8 @@ try:
|
||||
print("No GPUs on machine")
|
||||
else:
|
||||
for device in devices:
|
||||
power = amdsmi_get_energy_count(device)
|
||||
print(power)
|
||||
energy_dict = amdsmi_get_energy_count(device)
|
||||
print(energy_dict)
|
||||
except AmdSmiException as e:
|
||||
print(e)
|
||||
```
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador