gemini_gni-crayxe: add a hugepages option, to automate the build a bit more
authorPhil Miller <mille121@illinois.edu>
Tue, 9 Oct 2012 21:17:51 +0000 (16:17 -0500)
committerPhil Miller <mille121@illinois.edu>
Tue, 9 Oct 2012 21:17:51 +0000 (16:17 -0500)
src/arch/gemini_gni-crayxe/conv-mach-hugepages.h [new file with mode: 0644]
src/arch/gemini_gni-crayxe/conv-mach-hugepages.sh [new file with mode: 0644]
src/arch/gemini_gni/machine.c

diff --git a/src/arch/gemini_gni-crayxe/conv-mach-hugepages.h b/src/arch/gemini_gni-crayxe/conv-mach-hugepages.h
new file mode 100644 (file)
index 0000000..a71bdf7
--- /dev/null
@@ -0,0 +1 @@
+#define LARGEPAGE 1
diff --git a/src/arch/gemini_gni-crayxe/conv-mach-hugepages.sh b/src/arch/gemini_gni-crayxe/conv-mach-hugepages.sh
new file mode 100644 (file)
index 0000000..5fa263f
--- /dev/null
@@ -0,0 +1 @@
+# Check that some hugepages module is loaded
index 1c78f3cb28aa4f47cbef4664bfaeec1ca5e16d3c..032859bcef706457c9767125fd7dcf109ff31cdc 100644 (file)
@@ -47,7 +47,9 @@
 #include "cmidirect.h"
 #endif
 
+#if !defined(LARGEPAGE)
 #define     LARGEPAGE              0
+#endif
 
 #if CMK_SMP
 #define MULTI_THREAD_SEND          0