#include "smpi/smpi_interface.h"
#include "mc/mc.h"
#include "instr/instr.h"
+#include "surf/vm_workstation_private.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_config, surf,
"About the configuration of simgrid");
sg_weight_S_parameter = xbt_cfg_get_double(_sg_cfg_set, name);
}
+#ifdef HAVE_SMPI
/* callback of the mpi collectives */
static void _sg_cfg_cb__coll(const char *category,
s_mpi_coll_description_t * table,
{
_sg_cfg_cb__coll("reduce", mpi_coll_reduce_description, name, pos);
}
-
+#endif
/* callback of the inclusion path */
static void _sg_cfg_cb__surf_path(const char *name, int pos)
xbt_cfg_setdefault_string(_sg_cfg_set, "ns3/TcpModel", "default");
#endif
-//SMPI
+#ifdef HAVE_SMPI
double default_reference_speed = 20000.0;
xbt_cfg_register(&_sg_cfg_set, "smpi/running_power",
"Power of the host running the simulation (in flop/s). Used to bench the operations.",
"Which collective to use for reduce",
xbt_cfgelm_string, &default_value, 1, 1, &_sg_cfg_cb__coll_reduce,
NULL);
- //END SMPI
-
+#endif // HAVE_SMPI
if (!surf_path) {
/* retrieves the current directory of the current process */
XBT_DEBUG("Call workstation_model_init");
surf_workstation_model_description[workstation_id].model_init_preparse();
+ XBT_DEBUG("Call vm_workstation_model_init");
+ surf_vm_workstation_model_init();
+
XBT_DEBUG("Call storage_model_init");
storage_id = find_model_description(surf_storage_model_description, storage_model_name);
surf_storage_model_description[storage_id].model_init_preparse();