/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include <cstring>
-
-#include <unordered_map>
-#include <utility>
-
#include "src/internal_config.h"
#include "private.h"
#include "private.hpp"
-#include <xbt/ex.hpp>
-#include "xbt/dict.h"
-#include "xbt/sysdep.h"
-#include "xbt/ex.h"
-#include "surf/surf.h"
-#include "simgrid/sg_config.h"
#include "simgrid/modelchecker.h"
#include "src/mc/mc_replay.h"
+#include "src/smpi/smpi_process.hpp"
+#include "src/smpi/smpi_comm.hpp"
-#include <sys/types.h>
#ifndef WIN32
#include <sys/mman.h>
#endif
#include <math.h> // sqrt
-#include <stdio.h>
#if HAVE_PAPI
#include <papi.h>
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;
}
}
+void smpi_execute_benched(double duration)
+{
+ smpi_bench_end();
+ smpi_execute(duration);
+ smpi_bench_begin();
+}
+
void smpi_bench_begin()
{
if (smpi_privatize_global_variables == SMPI_PRIVATIZE_MMAP) {
smpi_trace_set_call_location(file, *line);
}
- /**
+ /**
* Required for Fortran if -fsecond-underscore is activated
*/
void smpi_trace_set_call_location__(const char* file, int* line) {