X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d2b42c9c0b31834a48bc489d05e4f9499b81bb72..3880093b08b4663a22f6ea9c35e7dfa7248a5491:/src/mc/mc_config.cpp diff --git a/src/mc/mc_config.cpp b/src/mc/mc_config.cpp index b1a70e34b5..2ba61a4d88 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 @@ -18,9 +20,7 @@ namespace mc { simgrid::mc::ReductionMode reduction_mode = simgrid::mc::ReductionMode::unset; } } -#endif - -#if !SIMGRID_HAVE_MC +#else #define _sg_do_model_check 0 #endif @@ -73,6 +73,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) { @@ -86,10 +94,6 @@ static simgrid::config::Flag _sg_mc_reduce{ xbt_die("configuration option model-check/reduction can only take 'none' or 'dpor' as a value"); }}; -simgrid::config::Flag _sg_mc_hash{ - "model-check/hash", "Whether to enable state hash for state comparison (experimental)", false, - [](bool) { _mc_cfg_cb_check("value to enable/disable the use of global hash to speedup state comparaison"); }}; - simgrid::config::Flag _sg_mc_max_depth{"model-check/max-depth", {"model-check/max_depth"}, "Maximal exploration depth (default: 1000)",