return host->p_cpu->getPowerPeakAt(pstate_index);
}
-int surf_host_get_nb_pstates(sg_host_t host){
- return host->p_cpu->getNbPStates();
-}
-
void surf_host_set_pstate(sg_host_t host, int pstate_index){
host->p_cpu->setPState(pstate_index);
}
-int surf_host_get_pstate(sg_host_t host){
- return host->p_cpu->getPState();
-}
using simgrid::energy::HostEnergy;
using simgrid::energy::surf_energy;