#include <time.h>
#endif
-extern "C" {
-
#define PERSISTENT 0x1
#define NON_PERSISTENT 0x2
#define SEND 0x4
XBT_PRIVATE void smpi_free_tmp_buffer(void* buf);
XBT_PRIVATE void smpi_free_replay_tmp_buffers();
+extern "C" {
// f77 wrappers
+
void mpi_init_(int* ierr);
void mpi_finalize_(int* ierr);
void mpi_abort_(int* comm, int* errorcode, int* ierr);
XBT_PUBLIC int smpi_getopt_long (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index);
XBT_PUBLIC int smpi_getopt (int argc, char *const *argv, const char *options);
+} // extern "C"
+
struct s_smpi_privatization_region_t {
void* address;
int file_descriptor;
extern XBT_PRIVATE int smpi_loaded_page;
extern XBT_PRIVATE int smpi_universe_size;
XBT_PRIVATE smpi_privatization_region_t smpi_init_global_memory_segment_process();
-}
/**
* Get the address of the beginning of the memory page where addr is located.
extern std::unordered_map<std::string, double> location2speedup;
/** @brief Returns the last call location (filename, linenumber). Process-specific. */
-extern "C" {
XBT_PUBLIC smpi_trace_call_location_t* smpi_trace_get_call_location();
-}
enum class SmpiPrivStrategies { None = 0, Mmap = 1, Dlopen = 2, Default = Dlopen };