From 39263f9f6bcc918f6c2f8632c908b71c76e645ed Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 15 Mar 2023 15:17:52 +0100 Subject: [PATCH] Apply "smpi/buffering" when MC_record_replay_is_active too. --- src/smpi/internals/smpi_config.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/smpi/internals/smpi_config.cpp b/src/smpi/internals/smpi_config.cpp index 69a77faa0f..614a00e264 100644 --- a/src/smpi/internals/smpi_config.cpp +++ b/src/smpi/internals/smpi_config.cpp @@ -35,6 +35,7 @@ #if SIMGRID_HAVE_MC #include "src/mc/mc_config.hpp" +#include "src/mc/mc_replay.hpp" #endif #if defined(__APPLE__) @@ -308,7 +309,7 @@ void smpi_init_options_internal(bool called_by_smpi_main) void smpi_check_options() { #if SIMGRID_HAVE_MC - if (MC_is_active()) { + if (MC_is_active() || MC_record_replay_is_active()) { if (_sg_mc_buffering == "zero") simgrid::config::set_value("smpi/send-is-detached-thresh", 0); else if (_sg_mc_buffering == "infty") -- 2.20.1