From 54cb3695a30bf100bec2710d11af87d3b6ba1a44 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 10 Sep 2018 15:03:49 +0200 Subject: [PATCH 1/1] align doc and code on a more sensible value --- doc/doxygen/options.doc | 2 +- src/smpi/internals/smpi_bench.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/doxygen/options.doc b/doc/doxygen/options.doc index 200b0915a1..34bec891a3 100644 --- a/doc/doxygen/options.doc +++ b/doc/doxygen/options.doc @@ -1250,7 +1250,7 @@ to smpirun to actually activate the huge page support in shared mallocs. @subsection options_model_smpi_wtime smpi/wtime: Inject constant times for calls to MPI_Wtime, gettimeofday and clock_gettime -@b Default value: 1ms +@b Default value: 10 ns This option controls the amount of (simulated) time spent in calls to MPI_Wtime(), gettimeofday() and clock_gettime(). If you set this value diff --git a/src/smpi/internals/smpi_bench.cpp b/src/smpi/internals/smpi_bench.cpp index 3ebf4088b1..9793546b0f 100644 --- a/src/smpi/internals/smpi_bench.cpp +++ b/src/smpi/internals/smpi_bench.cpp @@ -31,7 +31,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_bench, smpi, "Logging specific to SMPI (ben static simgrid::config::Flag smpi_wtime_sleep("smpi/wtime", "Minimum time to inject inside a call to MPI_Wtime(), gettimeofday() and clock_gettime()", - 1e-6 /* Documented to be 1ms */); + 1e-8 /* Documented to be 10 ns */); double smpi_cpu_threshold = -1; double smpi_host_speed; -- 2.20.1