Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Inform the user that smpi/running_power has to be set to get accurate timings.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 30 Jan 2014 14:25:10 +0000 (15:25 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 30 Jan 2014 14:26:52 +0000 (15:26 +0100)
src/smpi/smpi_global.c

index 7e446a9..97115a8 100644 (file)
@@ -335,6 +335,12 @@ void smpi_global_init(void)
 
   xbt_assert(sg_cfg_get_int("smpi/async_small_thres") <=
              sg_cfg_get_int("smpi/send_is_detached_thres"));
+
+  if (sg_cfg_is_default_value("smpi/running_power")) {
+    XBT_INFO("You did not set the power of the host running the simulation.  "
+             "The timings will certainly not be accurate.  "
+             "Use the option \"--cfg=smpi/running_power:<flops>\" to set its value.");
+  }
 }
 
 void smpi_global_destroy(void)