From: Augustin Degomme Date: Sun, 28 Mar 2021 00:56:39 +0000 (+0100) Subject: rename option, X-Git-Tag: v3.27~14 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1e7932a62c57ce6e502e7b7a00c989edf44e8e5a rename option, display-analysis was meant to display both timings and allocations, but it's just allocations. --- diff --git a/src/smpi/internals/smpi_config.cpp b/src/smpi/internals/smpi_config.cpp index a5cb4cb9b7..425ca502d7 100644 --- a/src/smpi/internals/smpi_config.cpp +++ b/src/smpi/internals/smpi_config.cpp @@ -181,7 +181,7 @@ void smpi_init_options(){ // return if already called if(_smpi_options_initialized) return; - simgrid::config::declare_flag("smpi/display-analysis", "Whether we should display a memory allocations analysis after simulation.", false); + simgrid::config::declare_flag("smpi/display-allocs", "Whether we should display a memory allocations analysis after simulation.", false); simgrid::config::declare_flag("smpi/display-timing", "Whether we should display the timing after simulation.", false); simgrid::config::declare_flag("smpi/list-leaks", "Whether we should display the n first MPI handle leaks (addresses and type only) after simulation", 0); simgrid::config::declare_flag("smpi/keep-temps", "Whether we should keep the generated temporary files.", false); diff --git a/src/smpi/internals/smpi_utils.cpp b/src/smpi/internals/smpi_utils.cpp index 8cbd011e9b..ee8182fc13 100644 --- a/src/smpi/internals/smpi_utils.cpp +++ b/src/smpi/internals/smpi_utils.cpp @@ -148,7 +148,7 @@ void print_memory_analysis(){ } } } - if (simgrid::config::get_value("smpi/display-analysis")) { + if (simgrid::config::get_value("smpi/display-allocs")) { XBT_INFO("Memory Usage: Simulated application allocated %lu bytes during its lifetime through malloc/calloc calls.\n" "Largest allocation at once from a single process was %zu bytes, at %s:%d. It was called %u times during the whole simulation.\n" "If this is too much, consider sharing allocations for computation buffers.\n" diff --git a/teshsuite/smpi/coll-allreduce-with-leaks/coll-allreduce-with-leaks.tesh b/teshsuite/smpi/coll-allreduce-with-leaks/coll-allreduce-with-leaks.tesh index 464280add9..98a99d9889 100644 --- a/teshsuite/smpi/coll-allreduce-with-leaks/coll-allreduce-with-leaks.tesh +++ b/teshsuite/smpi/coll-allreduce-with-leaks/coll-allreduce-with-leaks.tesh @@ -2,7 +2,7 @@ ! output sort p Test allreduce -$ $VALGRIND_NO_LEAK_CHECK ${bindir:=.}/../../../smpi_script/bin/smpirun -map -hostfile ../hostfile_coll -platform ${platfdir:=.}/small_platform.xml -np 16 --log=xbt_cfg.thres:critical ${bindir:=.}/coll-allreduce-with-leaks --log=smpi_config.thres:warning --cfg=smpi/display-analysis:yes --cfg=smpi/simulate-computation:no --log=smpi_coll.thres:error --log=smpi_mpi.thres:error --log=smpi_pmpi.thres:error +$ $VALGRIND_NO_LEAK_CHECK ${bindir:=.}/../../../smpi_script/bin/smpirun -map -hostfile ../hostfile_coll -platform ${platfdir:=.}/small_platform.xml -np 16 --log=xbt_cfg.thres:critical ${bindir:=.}/coll-allreduce-with-leaks --log=smpi_config.thres:warning --cfg=smpi/display-allocs:yes --cfg=smpi/simulate-computation:no --log=smpi_coll.thres:error --log=smpi_mpi.thres:error --log=smpi_pmpi.thres:error > [rank 0] -> Tremblay > [rank 1] -> Tremblay > [rank 2] -> Tremblay