SimGrid  3.13
Versatile Simulation of Distributed Systems
smpi_dvfs.cpp File Reference
#include "simgrid/plugins/energy.h"
#include "xbt/log.h"
#include "simgrid/simix.h"
#include "smpi/smpi.h"
#include "src/internal_config.h"

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (smpi_dvfs, smpi,"Logging specific to SMPI (experimental DVFS support)")
 
double smpi_get_host_power_peak_at (int pstate_index)
 Return the speed of the processor (in flop/s) at a given pstate. More...
 
double smpi_get_host_current_power_peak (void)
 Return the current speed of the processor (in flop/s) More...
 
int smpi_get_host_nb_pstates (void)
 Return the number of pstates defined for the current host. More...
 
void smpi_set_host_pstate (int pstate_index)
 Sets the pstate at which the processor should run. More...
 
int smpi_get_host_pstate ()
 Gets the pstate at which the processor currently running. More...
 
double smpi_get_host_consumed_energy (void)
 Return the total energy consumed by a host (in Joules) More...
 

Function Documentation

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( smpi_dvfs  ,
smpi  ,
"Logging specific to SMPI (experimental DVFS support)"   
)
double smpi_get_host_power_peak_at ( int  pstate_index)

Return the speed of the processor (in flop/s) at a given pstate.

Parameters
pstate_indexpstate to test
Returns
Returns the processor speed associated with pstate_index
double smpi_get_host_current_power_peak ( void  )

Return the current speed of the processor (in flop/s)

Returns
Returns the current processor speed
int smpi_get_host_nb_pstates ( void  )

Return the number of pstates defined for the current host.

void smpi_set_host_pstate ( int  pstate_index)

Sets the pstate at which the processor should run.

Parameters
pstate_indexpstate to switch to
int smpi_get_host_pstate ( )

Gets the pstate at which the processor currently running.

Parameters
pstate_indexpstate to switch to
double smpi_get_host_consumed_energy ( void  )

Return the total energy consumed by a host (in Joules)

Returns
Returns the consumed energy