Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MC does not like mutexes, so disable the barrier for it.
[simgrid.git] / src / smpi / internals / smpi_global.cpp
index 491428a..9e48edc 100644 (file)
@@ -635,7 +635,9 @@ void smpi_mpi_init() {
   smpi_init_fortran_types();
   if(_smpi_init_sleep > 0)
     simgrid::s4u::this_actor::sleep_for(_smpi_init_sleep);
-  smpi_deployment_startup_barrier(smpi_process()->get_instance_id());
+  if (not MC_is_active()) {
+    smpi_deployment_startup_barrier(smpi_process()->get_instance_id());
+  }
 }
 
 void SMPI_thread_create() {