X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9bf049cea1d0bdabc36c9ffbb69ded21bf462ce4..64321801c5ecb0214e4f8f3681723f551fddb79d:/src/smpi/smpi_bench.cpp diff --git a/src/smpi/smpi_bench.cpp b/src/smpi/smpi_bench.cpp index a284bb180e..c27028aae7 100644 --- a/src/smpi/smpi_bench.cpp +++ b/src/smpi/smpi_bench.cpp @@ -24,12 +24,7 @@ #ifndef WIN32 #include #endif -#include -#include -#include #include // sqrt -#include -#include #include #if HAVE_PAPI @@ -41,7 +36,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_bench, smpi, "Logging specific to SMPI (ben xbt_dict_t samples = nullptr; /* Allocated on first use */ -double smpi_cpu_threshold; +double smpi_cpu_threshold = -1; double smpi_host_speed; shared_malloc_type smpi_cfg_shared_malloc = shmalloc_global; @@ -96,7 +91,7 @@ void smpi_execute(double duration) void smpi_bench_begin() { - if (smpi_privatize_global_variables) { + if (smpi_privatize_global_variables == SMPI_PRIVATIZE_MMAP) { smpi_switch_data_segment(smpi_process()->index()); }