X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/89a6b1960c468f7d64b9c9c3e7f8256d59774b8e..d4fb7b9d845c48b3274774833a3b848750a73766:/src/smpi/smpi_dvfs.cpp diff --git a/src/smpi/smpi_dvfs.cpp b/src/smpi/smpi_dvfs.cpp index 1ab64e03a2..8c161927c6 100644 --- a/src/smpi/smpi_dvfs.cpp +++ b/src/smpi/smpi_dvfs.cpp @@ -4,10 +4,15 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include "simgrid/plugins/energy.h" // FIXME: this plugin should be separated from the core -#include "xbt/log.h" -#include "simgrid/simix.h" -#include "smpi/smpi.h" +#include + +// FIXME: this plugin should be separated from the core +#include +#include +#include + +#include + #include "src/internal_config.h" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_dvfs, smpi, "Logging specific to SMPI (experimental DVFS support)"); @@ -20,7 +25,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_dvfs, smpi, "Logging specific to SMPI (expe */ double smpi_get_host_power_peak_at(int pstate_index) { - return SIMIX_host_self()->powerPeakAt(pstate_index); + return SIMIX_host_self()->getPstateSpeed(pstate_index); } /** @@ -30,7 +35,7 @@ double smpi_get_host_power_peak_at(int pstate_index) */ double smpi_get_host_current_power_peak(void) { - return SIMIX_host_self()->currentPowerPeak(); + return SIMIX_host_self()->getPstateSpeedCurrent(); } /** @@ -50,11 +55,7 @@ void smpi_set_host_pstate(int pstate_index) { sg_host_set_pstate(SIMIX_host_self(), pstate_index); } -/** - * \brief Gets the pstate at which the processor currently running - * - * \param pstate_index pstate to switch to - */ +/** @brief Gets the pstate at which the processor currently running */ int smpi_get_host_pstate() { return sg_host_get_pstate(SIMIX_host_self()); }