X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bfc956026c22595af39ca5c73b7e250e16d85aea..23954e6db4f5a05de23442ca084c05a7e7d170d0:/src/smpi/smpi_bench.c diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index d35c50c8d9..a5d2335d21 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -12,6 +12,7 @@ #include "xbt/hash.h" #include "surf/surf.h" #include "simgrid/sg_config.h" +#include "simgrid/modelchecker.h" #ifndef WIN32 #include @@ -190,11 +191,19 @@ void smpi_switch_data_segment(int dest); void smpi_bench_begin(void) { smpi_switch_data_segment(smpi_process_index()); + + if(MC_is_active()) + return; + xbt_os_threadtimer_start(smpi_process_timer()); } void smpi_bench_end(void) { + + if(MC_is_active()) + return; + xbt_os_timer_t timer = smpi_process_timer(); xbt_os_threadtimer_stop(timer); // smpi_switch_data_segment(smpi_process_count());