From 59813851f71d1ecdd1bd22b092274f9fd9086cb0 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Thu, 30 Sep 2021 18:40:16 +0200 Subject: [PATCH] MC does not like mutexes, so disable the barrier for it. Not ideal, obviously. --- src/smpi/internals/smpi_global.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() { -- 2.20.1