From: Augustin Degomme Date: Thu, 30 Sep 2021 16:40:16 +0000 (+0200) Subject: MC does not like mutexes, so disable the barrier for it. X-Git-Tag: v3.29~26 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/59813851f71d1ecdd1bd22b092274f9fd9086cb0 MC does not like mutexes, so disable the barrier for it. Not ideal, obviously. --- diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index 491428a0fb..9e48edc6d4 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -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() {