File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,13 +161,13 @@ def energy_compute(self) -> pm.EnergyResponse:
161161 cpu_component .component_type = pm .ENERGY_CPU_DRAM
162162 cpu_component .consumption_joules = energy_measurer .cpu_energy ()/ float (iterations )
163163 components .append (cpu_component )
164- components_joules .append (0 )
164+ components_joules .append (cpu_component . consumption_joules )
165165 else :
166166 cpu_component = pm .EnergyConsumptionComponent ()
167167 cpu_component .component_type = pm .ENERGY_CPU_DRAM
168- cpu_component .consumption_joules = 0
168+ cpu_component .consumption_joules = 0.0
169169 components .append (cpu_component )
170- components_joules .append (0 )
170+ components_joules .append (cpu_component . consumption_joules )
171171
172172 gpu_component = pm .EnergyConsumptionComponent ()
173173 gpu_component .component_type = pm .ENERGY_NVIDIA
You can’t perform that action at this time.
0 commit comments