A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
all actors are unified, no need to virtualize between APIs
[simgrid.git]
/
src
/
smpi
/
smpi_memory.cpp
diff --git
a/src/smpi/smpi_memory.cpp
b/src/smpi/smpi_memory.cpp
index
4b29b0c
..
4b62f24
100644
(file)
--- a/
src/smpi/smpi_memory.cpp
+++ b/
src/smpi/smpi_memory.cpp
@@
-23,7
+23,7
@@
#include "src/xbt/memory_map.hpp"
#include "src/xbt/memory_map.hpp"
-#include "private.h"
+#include "
src/smpi/
private.h"
#include "private.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_memory, smpi, "Memory layout support for SMPI");
#include "private.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_memory, smpi, "Memory layout support for SMPI");
@@
-114,12
+114,7
@@
int smpi_is_privatisation_file(char* file)
void smpi_initialize_global_memory_segments()
{
void smpi_initialize_global_memory_segments()
{
-#if !HAVE_PRIVATIZATION
- smpi_privatize_global_variables=false;
- xbt_die("You are trying to use privatization on a system that does not support it. Don't.");
- return;
-#else
-
+#if HAVE_PRIVATIZATION
smpi_get_executable_global_size();
XBT_DEBUG ("bss+data segment found : size %d starting at %p", smpi_size_data_exe, smpi_start_data_exe );
smpi_get_executable_global_size();
XBT_DEBUG ("bss+data segment found : size %d starting at %p", smpi_size_data_exe, smpi_start_data_exe );
@@
-182,6
+177,10
@@
Ask the Internet about tutorials on how to increase the files limit such as: htt
smpi_privatisation_regions[i].file_descriptor = file_descriptor;
smpi_privatisation_regions[i].address = address;
}
smpi_privatisation_regions[i].file_descriptor = file_descriptor;
smpi_privatisation_regions[i].address = address;
}
+#else /* ! HAVE_PRIVATIZATION */
+ smpi_privatize_global_variables = false;
+ xbt_die("You are trying to use privatization on a system that does not support it. Don't.");
+ return;
#endif
}
#endif
}