Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[ENERGY] Energy wasn't computed correctly when pstates are changed
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 10 Mar 2017 13:38:33 +0000 (14:38 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 10 Mar 2017 13:39:03 +0000 (14:39 +0100)
commitf53de8e7017c7b01248f73cd38ac1d88bee5cc67
treedc7b5e9a95b43ce382cde9bee6de959b4f0c669d
parentc5bc0e27c706906255e8866d4bbc40e90b4f6719
[ENERGY] Energy wasn't computed correctly when pstates are changed

Time 0-100: Pstate 0 was used
Time 100:   Pstate 1 is now used

The energy plugin used Pstate 1 at point 100 to compute the energy
consumed from time 0 to time 100. Of course, pstate 0 needs to be used
but the plugin had no way to keep track of that.

This patch fixes that
src/surf/plugins/host_energy.cpp