|
SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
#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... | |
| 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.
| pstate_index | pstate to test |
| double smpi_get_host_current_power_peak | ( | ) |
Return the current speed of the processor (in flop/s)
| int smpi_get_host_nb_pstates | ( | ) |
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.
| pstate_index | pstate to switch to |
| int smpi_get_host_pstate | ( | ) |
Gets the pstate at which the processor currently running.
| double smpi_get_host_consumed_energy | ( | ) |
Return the total energy consumed by a host (in Joules)