From: Martin Quinson Date: Thu, 16 Feb 2023 22:44:37 +0000 (+0100) Subject: Rename option "surf/precision" to "precision/timing" for clarity. X-Git-Tag: v3.34~516 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1ea2d193d35be7639d7653d150084773a61a9eb3 Rename option "surf/precision" to "precision/timing" for clarity. --- diff --git a/ChangeLog b/ChangeLog index a70a5dcfa0..b9f5e31f7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -36,6 +36,7 @@ Models: - Allow to disable the TCP windowing modeling by setting network/TCP-gamma to 0. - Finally kill the 'compound' host model. You can change the CPU or network model with the default host model, as it should. + - Rename option "surf/precision" to "precision/timing" for clarity. sthread: - Implement pthread_join in MC mode. diff --git a/docs/source/Configuring_SimGrid.rst b/docs/source/Configuring_SimGrid.rst index 56342562d7..a2bc3e3c34 100644 --- a/docs/source/Configuring_SimGrid.rst +++ b/docs/source/Configuring_SimGrid.rst @@ -140,7 +140,7 @@ Existing Configuration Items - **storage/max_file_descriptors:** :ref:`cfg=storage/max_file_descriptors` -- **surf/precision:** :ref:`cfg=surf/precision` +- **precision/timing:** :ref:`cfg=precision/timing` - **For collective operations of SMPI,** please refer to Section :ref:`cfg=smpi/coll-selector` - **smpi/auto-shared-malloc-thresh:** :ref:`cfg=smpi/auto-shared-malloc-thresh` @@ -304,13 +304,13 @@ configurations. .. _cfg=bmf/precision: .. _cfg=maxmin/precision: -.. _cfg=surf/precision: +.. _cfg=precision/timing: Numerical Precision ................... **Option** ``maxmin/precision`` **Default:** 1e-5 (in flops or bytes) |br| -**Option** ``surf/precision`` **Default:** 1e-9 (in seconds) |br| +**Option** ``precision/timing`` **Default:** 1e-9 (in seconds) |br| **Option** ``bmf/precision`` **Default:** 1e-12 (no unit) The analytical models handle a lot of floating point values. It is diff --git a/src/kernel/lmm/System.cpp b/src/kernel/lmm/System.cpp index 5df8786f7a..a665cfe94a 100644 --- a/src/kernel/lmm/System.cpp +++ b/src/kernel/lmm/System.cpp @@ -14,7 +14,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(ker_lmm, kernel, "Kernel Linear Max-Min solver"); double sg_maxmin_precision = 1E-5; /* Change this with --cfg=maxmin/precision:VALUE */ -double sg_precision_timing = 1E-9; /* Change this with --cfg=surf/precision:VALUE */ +double sg_precision_timing = 1E-9; /* Change this with --cfg=precision/timing:VALUE */ int sg_concurrency_limit = -1; /* Change this with --cfg=maxmin/concurrency-limit:VALUE */ namespace simgrid::kernel::lmm { diff --git a/src/simgrid/sg_config.cpp b/src/simgrid/sg_config.cpp index 2793ca5ecc..dc2fd84689 100644 --- a/src/simgrid/sg_config.cpp +++ b/src/simgrid/sg_config.cpp @@ -146,7 +146,7 @@ void sg_config_init(int *argc, char **argv) simgrid_host_models().create_flag("host/model", "The model to use for the host", "default", false); simgrid_disk_models().create_flag("disk/model", "The model to use for the disk", "S19", false); - simgrid::config::bind_flag(sg_precision_timing, "surf/precision", + simgrid::config::bind_flag(sg_precision_timing, "precision/timing", {"surf/precision"}, "Numerical precision used when updating simulation times (in seconds)"); simgrid::config::bind_flag(sg_maxmin_precision, "maxmin/precision",