Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SMPI: make dlopen default privatization method, and activate it by default
[simgrid.git] / src / simgrid / sg_config.cpp
index 9158528..88e5e7c 100644 (file)
@@ -1,10 +1,9 @@
-/* Copyright (c) 2009-2010, 2012-2017. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2009-2017. The SimGrid Team. All rights reserved.          */
 
 /* 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. */
 
-/* sg_config: configuration infrastructure for the simulation world       */
+/* sg_config: configuration infrastructure for the simulation world         */
 
 #include "simgrid/sg_config.h"
 #include "instr/instr_interface.h"
@@ -12,9 +11,9 @@
 #include "simgrid/instr.h"
 #include "simgrid/simix.h"
 #include "simgrid_config.h" /* what was compiled in? */
-#include "src/mc/mc_replay.h"
+#include "src/kernel/lmm/maxmin.hpp"
+#include "src/mc/mc_replay.hpp"
 #include "src/surf/surf_interface.hpp"
-#include "surf/maxmin.hpp"
 #include "surf/surf.hpp"
 #include "xbt/config.h"
 #include "xbt/config.hpp"
@@ -501,7 +500,7 @@ void sg_config_init(int *argc, char **argv)
 
     const char* default_privatization = std::getenv("SMPI_PRIVATIZATION");
     if (default_privatization == nullptr)
-      default_privatization = "no";
+      default_privatization = "dlopen";
 
     xbt_cfg_register_string("smpi/privatization", default_privatization, nullptr,
                             "How we should privatize global variable at runtime (no, yes, mmap, dlopen).");