-/* Copyright (c) 2013-2015. The SimGrid Team.
+/* Copyright (c) 2013-201. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
int USER_HOST_LEVEL;
#include "src/msg/msg_private.h" // MSG_host_priv_free. FIXME: killme
-#include "src/simdag/private.h" // __SD_workstation_destroy. FIXME: killme
+#include "src/simdag/simdag_private.h" // __SD_workstation_destroy. FIXME: killme
#include "src/simix/smx_host_private.h" // SIMIX_host_destroy. FIXME: killme
#include "src/surf/cpu_interface.hpp"
#include "src/surf/surf_routing.hpp"
// =========== user-level functions ===============
// ================================================
+/** @brief Get the speed of the cpu associated to a host */
double sg_host_get_speed(sg_host_t host){
- return surf_host_get_speed(host, 1.0);
+ return host->p_cpu->getSpeed(1.0);
}
double sg_host_get_available_speed(sg_host_t host){
}
/** @brief Returns the number of core of the processor. */
int sg_host_get_core(sg_host_t host) {
- return surf_host_get_core(host);
+ return host->p_cpu->getCore();
}
/** @brief Returns the state of a host.
* @return 1 if the host is active or 0 if it has crashed.