From: Augustin Degomme Date: Thu, 27 May 2021 09:12:17 +0000 (+0200) Subject: leaks analysis : activate if list-leaks is asked manually (without smpi/display-alloc... X-Git-Tag: v3.28~221 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2533f01016c86410b430bf2f242ed2ffec647e25 leaks analysis : activate if list-leaks is asked manually (without smpi/display-allocs or -analyze) --- diff --git a/src/smpi/internals/smpi_config.cpp b/src/smpi/internals/smpi_config.cpp index 13e2afd627..d38ea1bc92 100644 --- a/src/smpi/internals/smpi_config.cpp +++ b/src/smpi/internals/smpi_config.cpp @@ -125,6 +125,10 @@ simgrid::config::Flag _smpi_cfg_display_alloc("smpi/display-allocs", "Whether we should display a memory allocations analysis after simulation.", false); +simgrid::config::Flag _smpi_cfg_list_leaks("smpi/list-leaks", + "Whether we should display the n first MPI handle leaks (addresses and type only) after simulation", + -1); + double smpi_cfg_host_speed(){ return _smpi_cfg_host_speed; } @@ -170,7 +174,7 @@ bool smpi_cfg_trace_call_use_absolute_path(){ } bool smpi_cfg_display_alloc(){ - return _smpi_cfg_display_alloc; + return _smpi_cfg_list_leaks != -1 ? true : _smpi_cfg_display_alloc; } std::string smpi_cfg_comp_adjustment_file(){ @@ -190,7 +194,6 @@ void smpi_init_options(){ if(_smpi_options_initialized) return; 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); simgrid::config::declare_flag("smpi/tmpdir", "tmp dir for dlopen files", "/tmp");