Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MC does not like mutexes, so disable the barrier for it.
authorAugustin Degomme <adegomme@users.noreply.github.com>
Thu, 30 Sep 2021 16:40:16 +0000 (18:40 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Thu, 30 Sep 2021 16:40:16 +0000 (18:40 +0200)
Not ideal, obviously.

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() {