Add a 'DEPRECATED' comment for the more recent ones.
- Remove obsolete runtime option 'contexts/parallel-threshold'.
- Runtime option 'tracing/msg/process' renamed to 'tracing/actor'. The old name
has been kept for compatibility.
+ - Finally remove obsolete snake_case() aliases for runtime options.
- Further improve the documentation.
S4U:
"To use if the simulator does not use tracing categories but resource utilization have to be traced.",
false};
-static simgrid::config::Flag<bool> trace_disable_destroy{
- OPT_TRACING_DISABLE_DESTROY, {"tracing/disable_destroy"}, "Disable platform containers destruction.", false};
+static simgrid::config::Flag<bool> trace_disable_destroy{OPT_TRACING_DISABLE_DESTROY,
+ "Disable platform containers destruction.", false};
static simgrid::config::Flag<bool> trace_basic{OPT_TRACING_BASIC, "Avoid extended events (impoverished trace file).",
false};
config::declare_flag<bool>(OPT_TRACING_FORMAT_TI_ONEFILE,
"(smpi only) For replay format only : output to one file only", false);
- config::alias(OPT_TRACING_FORMAT_TI_ONEFILE, {"tracing/smpi/format/ti_one_file"});
config::declare_flag<std::string>("tracing/comment", "Add a comment line to the top of the trace file.", "");
config::declare_flag<std::string>(OPT_TRACING_COMMENT_FILE,
"Add the contents of a file as comments to the top of the trace.", "");
- config::alias(OPT_TRACING_COMMENT_FILE, {"tracing/comment_file"});
config::declare_flag<int>("tracing/precision",
"Numerical precision used when timestamping events "
"(expressed in number of digits after decimal point)",
simgrid::config::Flag<bool> _sg_mc_comms_determinism{
"model-check/communications-determinism",
- {"model-check/communications_determinism"},
"Whether to enable the detection of communication determinism",
false,
[](bool) {
simgrid::config::Flag<bool> _sg_mc_send_determinism{
"model-check/send-determinism",
- {"model-check/send_determinism"},
"Enable/disable the detection of send-determinism in the communications schemes",
false,
[](bool) {
}};
simgrid::config::Flag<int> _sg_mc_max_depth{"model-check/max-depth",
- {"model-check/max_depth"},
"Maximal exploration depth (default: 1000)",
1000,
[](int) { _mc_cfg_cb_check("max depth value"); }};
simgrid::config::Flag<std::string> _sg_mc_dot_output_file{
"model-check/dot-output",
- {"model-check/dot_output"},
"Name of dot output file corresponding to graph state",
"",
[](const std::string&) { _mc_cfg_cb_check("file name for a dot output of graph state"); }};
SIMGRID_REGISTER_PLUGIN(host_dvfs, "Dvfs support", &sg_host_dvfs_plugin_init)
-static simgrid::config::Flag<double> cfg_sampling_rate("plugin/dvfs/sampling-rate", {"plugin/dvfs/sampling_rate"},
- "How often should the dvfs plugin check whether the frequency needs to be changed?", 0.1,
- [](double val){if (val != 0.1) sg_host_dvfs_plugin_init();});
+static simgrid::config::Flag<double>
+ cfg_sampling_rate("plugin/dvfs/sampling-rate",
+ "How often should the dvfs plugin check whether the frequency needs to be changed?", 0.1,
+ [](double val) {
+ if (val != 0.1)
+ sg_host_dvfs_plugin_init();
+ });
static simgrid::config::Flag<std::string> cfg_governor("plugin/dvfs/governor",
"Which Governor should be used that adapts the CPU frequency?",
});
static simgrid::config::Flag<int>
- cfg_min_pstate("plugin/dvfs/min-pstate", {"plugin/dvfs/min_pstate"},
+ cfg_min_pstate("plugin/dvfs/min-pstate",
"Which pstate is the minimum (and hence fastest) pstate for this governor?", 0);
static const int max_pstate_not_limited = -1;
static simgrid::config::Flag<int>
- cfg_max_pstate("plugin/dvfs/max-pstate", {"plugin/dvfs/max_pstate"},
+ cfg_max_pstate("plugin/dvfs/max-pstate",
"Which pstate is the maximum (and hence slowest) pstate for this governor?", max_pstate_not_limited);
/** @addtogroup SURF_plugin_load
simgrid::config::bind_flag(sg_maxmin_precision, "maxmin/precision",
"Numerical precision used when computing resource sharing (in flops/sec or bytes/sec)");
- simgrid::config::bind_flag(sg_concurrency_limit, "maxmin/concurrency-limit", {"maxmin/concurrency_limit"},
+ simgrid::config::bind_flag(sg_concurrency_limit, "maxmin/concurrency-limit",
"Maximum number of concurrent variables in the maxmim system. Also limits the number of "
"processes on each host, at higher level. (default: -1 means no such limitation)");
/* The parameters of network models */
sg_latency_factor = 13.01; // comes from the default LV08 network model
- simgrid::config::bind_flag(sg_latency_factor, "network/latency-factor", {"network/latency_factor"},
+ simgrid::config::bind_flag(sg_latency_factor, "network/latency-factor",
"Correction factor to apply to the provided latency (default value set by network model)");
sg_bandwidth_factor = 0.97; // comes from the default LV08 network model
simgrid::config::bind_flag(
- sg_bandwidth_factor, "network/bandwidth-factor", {"network/bandwidth_factor"},
+ sg_bandwidth_factor, "network/bandwidth-factor",
"Correction factor to apply to the provided bandwidth (default value set by network model)");
sg_weight_S_parameter = 20537; // comes from the default LV08 network model
simgrid::config::bind_flag(
- sg_weight_S_parameter, "network/weight-S", {"network/weight_S"},
+ sg_weight_S_parameter, "network/weight-S",
"Correction factor to apply to the weight of competing streams (default value set by network model)");
simgrid::config::declare_flag<double>("network/loopback-lat",
"Update the constraint set propagating recursively to others constraints "
"(off by default unless optim is set to lazy)",
"no");
- simgrid::config::alias("cpu/maxmin-selective-update", {"cpu/maxmin_selective_update"});
simgrid::config::declare_flag<bool>("network/maxmin-selective-update", "Update the constraint set propagating "
"recursively to others constraints (off by "
"default unless optim is set to lazy)",
"no");
- simgrid::config::alias("network/maxmin-selective-update", {"network/maxmin_selective_update"});
simgrid::config::declare_flag<int>("contexts/stack-size", "Stack size of contexts in KiB (not with threads)",
8 * 1024, [](int value) { smx_context_stack_size = value * 1024; });
- simgrid::config::alias("contexts/stack-size", {"contexts/stack_size"});
/* guard size for contexts stacks in memory pages */
#if defined(_WIN32) || (PTH_STACKGROWTH != -1)
simgrid::config::declare_flag<int>("contexts/guard-size", "Guard size for contexts stacks in memory pages",
default_guard_size,
[](int value) { smx_context_guard_size = value * xbt_pagesize; });
- simgrid::config::alias("contexts/guard-size", {"contexts/guard_size"});
simgrid::config::declare_flag<int>("contexts/nthreads", "Number of parallel threads used to execute user contexts", 1,
&SIMIX_context_set_nthreads);
"meaning if(size >=thresholdN ) return valueN.",
"65472:0.940694;15424:0.697866;9376:0.58729;5776:1.08739;3484:0.77493;"
"1426:0.608902;732:0.341987;257:0.338112;0:0.812084");
- simgrid::config::alias("smpi/bw-factor", {"smpi/bw_factor"});
simgrid::config::declare_flag<std::string>("smpi/lat-factor", "Latency factors for smpi.",
"65472:11.6436;15424:3.48845;9376:2.59299;5776:2.18796;3484:1.88101;"
"1426:1.61075;732:1.9503;257:1.95341;0:2.01467");
- simgrid::config::alias("smpi/lat-factor", {"smpi/lat_factor"});
simgrid::config::declare_flag<std::string>("smpi/IB-penalty-factors",
"Correction factor to communications using Infiniband model with "
"contention (default value based on Stampede cluster profiling)",
"0.965;0.925;1.35");
- simgrid::config::alias("smpi/IB-penalty-factors", {"smpi/IB_penalty_factors"});
/* Others */
simgrid::config::declare_flag<bool>(
namespace simgrid {
namespace simix {
-config::Flag<bool> cfg_verbose_exit{"debug/verbose-exit", {"verbose-exit"}, "Display the actor status at exit", true};
+config::Flag<bool> cfg_verbose_exit{"debug/verbose-exit",
+ {"verbose-exit"}, // XBT_ATTRIB_DEPRECATED_v327(option alias)
+ "Display the actor status at exit",
+ true};
} // namespace simix
} // namespace simgrid
}
}
-config::Flag<double> cfg_breakpoint{
- "debug/breakpoint", {"simix/breakpoint"}, "When non-negative, raise a SIGTRAP after given (simulated) time", -1.0};
+config::Flag<double> cfg_breakpoint{"debug/breakpoint",
+ {"simix/breakpoint"}, // XBT_ATTRIB_DEPRECATED_v327(option alias)
+ "When non-negative, raise a SIGTRAP after given (simulated) time",
+ -1.0};
} // namespace simix
} // namespace simgrid
"smpi/ois", "Small messages timings (MPI_Isend minimum time for small messages)", "0:0:0:0:0");
simgrid::config::declare_flag<std::string>(
"smpi/or", "Small messages timings (MPI_Recv minimum time for small messages)", "0:0:0:0:0");
- simgrid::config::alias("smpi/display-timing", {"smpi/display_timing"});
- simgrid::config::alias("smpi/coll-selector", {"smpi/coll_selector"});
- simgrid::config::alias("smpi/simulate-computation", {"smpi/simulate_computation"});
- simgrid::config::alias("smpi/shared-malloc", {"smpi/use_shared_malloc", "smpi/use-shared-malloc"});
- simgrid::config::alias("smpi/host-speed", {"smpi/running_power", "smpi/running-power"});
- simgrid::config::alias("smpi/cpu-threshold", {"smpi/cpu_threshold"});
- simgrid::config::alias("smpi/async-small-thresh", {"smpi/async_small_thres", "smpi/async_small_thresh"});
- simgrid::config::alias("smpi/send-is-detached-thresh", {"smpi/send_is_detached_thres", "smpi/send_is_detached_thresh"});
- simgrid::config::alias("smpi/privatization", {"smpi/privatize_global_variables", "smpi/privatize-global-variables"});
- simgrid::config::alias("smpi/reduce_scatter", {"smpi/reduce-scatter"});
_smpi_options_initialized=true;
}
/** @brief Command-line option 'network/TCP-gamma' -- see @ref options_model_network_gamma */
simgrid::config::Flag<double> NetworkModel::cfg_tcp_gamma(
- "network/TCP-gamma", {"network/TCP_gamma"},
+ "network/TCP-gamma",
"Size of the biggest TCP window (cat /proc/sys/net/ipv4/tcp_[rw]mem for recv/send window; "
"Use the last given value, which is the max window size)",
4194304.0);
int xbt_initialized = 0;
simgrid::config::Flag<bool> cfg_dbg_clean_atexit{
"debug/clean-atexit",
- {"clean-atexit"},
+ {"clean-atexit"}, // XBT_ATTRIB_DEPRECATED_v327(option alias)
"Whether to cleanup SimGrid at exit. Disable it if your code segfaults after its end.",
true};