/* 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 <xbt/log.h>
+
+// FIXME: this plugin should be separated from the core
+#include <simgrid/plugins/energy.h>
+#include <simgrid/simix.h>
+#include <simgrid/s4u/host.hpp>
+
+#include <smpi/smpi.h>
+
#include "src/internal_config.h"
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 simcall_host_get_power_peak_at(SIMIX_host_self(), pstate_index);
+ return SIMIX_host_self()->getPstateSpeed(pstate_index);
}
/**
*/
double smpi_get_host_current_power_peak(void)
{
- return simcall_host_get_current_power_peak(SIMIX_host_self());
+ return SIMIX_host_self()->getPstateSpeedCurrent();
}
/**
{
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());
}