X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b41c921fc0a6a13f5db4d6cefb9b6955d5f21e3b..c1b7d5ba6a32f5fb70b7aec1c10e06ba560e195e:/src/mc/mc_config.cpp diff --git a/src/mc/mc_config.cpp b/src/mc/mc_config.cpp index 9353d3e87d..e6b4fb45f0 100644 --- a/src/mc/mc_config.cpp +++ b/src/mc/mc_config.cpp @@ -9,7 +9,7 @@ #include "src/mc/mc_safety.hpp" #endif -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_config, mc, "Configuration of the Model Checker"); +#include #if SIMGRID_HAVE_MC namespace simgrid { @@ -18,6 +18,8 @@ namespace mc { simgrid::mc::ReductionMode reduction_mode = simgrid::mc::ReductionMode::unset; } } +#else +#define _sg_do_model_check 0 #endif static void _mc_cfg_cb_check(const char* spec, bool more_check = true) @@ -69,6 +71,14 @@ simgrid::config::Flag _sg_mc_send_determinism{ _mc_cfg_cb_check("value to enable/disable the detection of send-determinism in the communications schemes"); }}; +simgrid::config::Flag _sg_mc_buffering{ + "smpi/buffering", + "Buffering semantic to use for MPI (only used in MC)", + "infty", + {{"zero", "No system buffering: MPI_Send is blocking"}, + {"infty", "Infinite system buffering: MPI_Send returns immediately"}}, + [](const std::string&) { _mc_cfg_cb_check("buffering mode"); }}; + static simgrid::config::Flag _sg_mc_reduce{ "model-check/reduction", "Specify the kind of exploration reduction (either none or DPOR)", "dpor", [](const std::string& value) {