XBT_INFO("# 10. (c) migrate");
simgrid::s4u::Host* pm1 = simgrid::s4u::Host::by_name("Fafard");
- MSG_vm_migrate(vm0, pm1);
+ sg_vm_migrate(vm0, pm1);
XBT_INFO(" ");
XBT_INFO("# 10. (d) Put an activity again on the VM.");
XBT_PUBLIC void sg_host_dvfs_plugin_init();
+#if SIMGRID_HAVE_MSG
#define MSG_host_dvfs_plugin_init() sg_host_dvfs_plugin_init()
+#endif // SIMGRID_HAVE_MSG
SG_END_DECL
XBT_PUBLIC void sg_wifi_energy_plugin_init();
+#if SIMGRID_HAVE_MSG
+
#define MSG_host_energy_plugin_init() sg_host_energy_plugin_init()
#define MSG_host_get_consumed_energy(host) sg_host_get_consumed_energy(host)
#define MSG_host_get_idle_consumption_at(host,pstate) sg_host_get_idle_consumption_at((host), (pstate))
#define MSG_host_get_power_range_slope_at(host,pstate) sg_host_get_power_range_slope_at((host), (pstate))
#define MSG_host_get_current_consumption(host) sg_host_get_current_consumption(host)
+#endif // SIMGRID_HAVE_MSG
+
SG_END_DECL
#endif
// C interface
////////////////
-typedef sg_file_t msg_file_t; // MSG backwards compatibility
SG_BEGIN_DECL
XBT_PUBLIC void sg_storage_file_system_init();
XBT_PUBLIC xbt_dict_t sg_host_get_storage_content(sg_host_t host);
+#if SIMGRID_HAVE_MSG
+
+typedef sg_file_t msg_file_t; // MSG backwards compatibility
+
#define MSG_file_open(fullpath, data) sg_file_open((fullpath), (data))
#define MSG_file_read(fd, size) sg_file_read((fd), (size))
#define MSG_file_write(fd, size) sg_file_write((fd), (size))
#define MSG_host_get_storage_content(st) sg_host_get_storage_content(st)
+#endif // SIMGRID_HAVE_MSG
+
SG_END_DECL
// C++ interface
XBT_PUBLIC sg_vm_t sg_vm_create_migratable(sg_host_t pm, const char* name, int coreAmount, int ramsize,
int mig_netspeed, int dp_intensity);
+#if SIMGRID_HAVE_MSG
+
#define MSG_vm_live_migration_plugin_init() sg_vm_live_migration_plugin_init()
#define MSG_vm_create_migratable(pm, name, coreAmount, ramsize, mig_netspeed, dp_intensity) \
#define MSG_vm_is_migrating(vm) sg_vm_is_migrating(vm)
#define MSG_vm_migrate(vm, dst_pm) sg_vm_migrate((vm), (dst_pm))
+#endif // SIMGRID_HAVE_MSG
+
SG_END_DECL
#endif
XBT_PUBLIC double sg_link_get_min_instantaneous_load(const_sg_link_t link);
XBT_PUBLIC double sg_link_get_max_instantaneous_load(const_sg_link_t link);
+#if SIMGRID_HAVE_MSG
+
#define MSG_host_load_plugin_init() sg_host_load_plugin_init()
/** @brief Returns the current load of that host, as a ratio = achieved_flops / (core_current_speed * core_amount)
*
#define MSG_host_get_computed_flops(host) sg_host_get_computed_flops(host)
#define MSG_host_get_avg_load(host) sg_host_get_avg_load(host)
+#endif // SIMGRID_HAVE_MSG
+
SG_END_DECL
#endif