X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/97b5c30c5882418937e25117a0111c4e71a2689c..4180937029f34127d89e8c8c7ca4645a96f28d3d:/src/mc/mc_config.cpp diff --git a/src/mc/mc_config.cpp b/src/mc/mc_config.cpp index 6dd2b9f5e6..1ab68c0c8d 100644 --- a/src/mc/mc_config.cpp +++ b/src/mc/mc_config.cpp @@ -9,6 +9,8 @@ #include "src/mc/mc_safety.hpp" #endif +#include + XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_config, mc, "Configuration of the Model Checker"); #if SIMGRID_HAVE_MC @@ -71,6 +73,21 @@ simgrid::config::Flag _sg_mc_send_determinism{ _mc_cfg_cb_check("value to enable/disable the detection of send-determinism in the communications schemes"); }}; +static simgrid::config::Flag _sg_mc_buffering{ + "smpi/buffering", "Buffering semantic to use for MPI (only used in MC)", "zero", [](const std::string& value) { + try { + if (value == "zero") + simgrid::config::set_value("smpi/send-is-detached-thresh", 0); + else if (value == "infty") + simgrid::config::set_value("smpi/send-is-detached-thresh", INT_MAX); + else + xbt_die("configuration option 'smpi/buffering' can only take 'zero' or 'infty' as a value"); + } catch (std::out_of_range& e) { + /* If the 'smpi/send-is-detached-thresh' does not exist, we are in the MCer process, where this option makes no + * sense, so just ignore it */ + } + }}; + 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) {