return host->p_cpu->getAvailableSpeed();
}
-surf_action_t surf_host_execute(sg_host_t host, double size){
- return host->p_cpu->execute(size);
-}
-
double surf_host_get_current_power_peak(sg_host_t host){
return host->p_cpu->getCurrentPowerPeak();
}
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;