Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Exclude preexisting region when computing smpi_data_exe_size.
[simgrid.git] / src / smpi / internals / smpi_global.cpp
index 79c7a6e..edfc750 100644 (file)
@@ -549,6 +549,8 @@ int smpi_main(const char* executable, int argc, char *argv[])
     };
   }
   else {
+    if (smpi_privatize_global_variables == SmpiPrivStrategies::Mmap)
+      smpi_prepare_global_memory_segment();
     // Load the dynamic library and resolve the entry point:
     void* handle = dlopen(executable, RTLD_LAZY | RTLD_LOCAL);
     if (handle == nullptr)