#include "xbt/log.h"
#include "simgrid/simix.h"
#include <simgrid/s4u/host.hpp>
+#include <numeric>
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg);
*/
int MSG_get_host_number()
{
- return xbt_dict_length(host_list);
+ return sg_host_count();
}
/** \ingroup m_host_management
* \return the number of cores
*/
int MSG_host_get_core_number(msg_host_t host) {
- return host->coresCount();
+ return host->coreCount();
}
/** \ingroup m_host_management
return host->isOff();
}
-/** \ingroup m_host_management
- * \brief Set the parameters of a given host
- *
- * \param host a host
- * \param params a prameter object
- */
-void MSG_host_set_params(msg_host_t host, vm_params_t params)
-{
- host->setParameters(params);
-}
-
-/** \ingroup m_host_management
- * \brief Get the parameters of a given host
- *
- * \param host a host
- * \param params a prameter object
- */
-void MSG_host_get_params(msg_host_t host, vm_params_t params)
-{
- host->parameters(params);
-}
-
/** \ingroup m_host_management
* \brief Return the speed of the processor (in flop/s) at a given pstate. See also @ref SURF_plugin_energy.
*