SimGrid  3.14.159
Versatile Simulation of Distributed Systems
smpi_dvfs.cpp File Reference
#include <xbt/log.h>
#include <simgrid/plugins/energy.h>
#include <simgrid/simix.h>
#include <simgrid/s4u/host.hpp>
#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 ()
 Return the current speed of the processor (in flop/s) More...
 
int smpi_get_host_nb_pstates ()
 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 ()
 Return the total energy consumed by a host (in Joules) More...
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( smpi_dvfs  ,
smpi  ,
"Logging specific to SMPI (experimental DVFS support)"   
)

◆ smpi_get_host_power_peak_at()

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

◆ smpi_get_host_current_power_peak()

double smpi_get_host_current_power_peak ( )

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

Returns
Returns the current processor speed

◆ smpi_get_host_nb_pstates()

int smpi_get_host_nb_pstates ( )

Return the number of pstates defined for the current host.

◆ smpi_set_host_pstate()

void smpi_set_host_pstate ( int  pstate_index)

Sets the pstate at which the processor should run.

Parameters
pstate_indexpstate to switch to

◆ smpi_get_host_pstate()

int smpi_get_host_pstate ( )

Gets the pstate at which the processor currently running.

◆ smpi_get_host_consumed_energy()

double smpi_get_host_consumed_energy ( )

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

Returns
Returns the consumed energy