Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added a --cfg="smpi/simulation_computation" to smpirun. The default
[simgrid.git] / src / smpi / smpi_bench.c
index b97f86e..8b37cab 100644 (file)
@@ -206,7 +206,10 @@ void smpi_bench_end(void)
     xbt_backtrace_display_current();
     xbt_die("Aborting.");
   }
-  smpi_execute(xbt_os_timer_elapsed(timer));
+  // Simulate the benchmarked computation unless disabled via command-line argument
+  if (sg_cfg_get_boolean("smpi/simulate_computation")) {
+    smpi_execute(xbt_os_timer_elapsed(timer));
+  }
 }
 
 /* Private sleep function used by smpi_sleep() and smpi_usleep() */