Work around failure of endianness testing on BlueGene
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 6 Jun 2012 11:52:41 +0000 (21:52 +1000)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 6 Jun 2012 12:53:59 +0000 (22:53 +1000)
Refs #944

Change-Id: I4bbfe9865800bbe4e407a88cdecec6678d56f3b4

CMakeLists.txt

index 8ec2c905837a4b15cac8729d65ee7f9ad66e2bba..e742e1a95a2ed1fda7bbf9782c0eed4172fe0b0a 100644 (file)
@@ -639,6 +639,9 @@ elseif(${GMX_ACCELERATION} STREQUAL "BLUEGENE")
     set(GMX_X11 OFF CACHE BOOL "X11 not compatible with BlueGene, disabled!" FORCE)
     set(GMX_THREADS OFF CACHE BOOL "Threads not compatible with BlueGene, disabled!" FORCE)
     set(GMX_MPI ON CACHE BOOL "Use MPI on BlueGene" FORCE)
+# The automatic testing for endianness does not work for the BlueGene cross-compiler
+    set(GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER 1 CACHE INTERNAL "BlueGene has big endian FP byte order (by default)" FORCE)
+    set(GMX_IEEE754_BIG_ENDIAN_WORD_ORDER 1 CACHE INTERNAL "BlueGene has big endian FP word order (by default)" FORCE)
 elseif(${GMX_ACCELERATION} STREQUAL "POWER6")
     set(GMX_POWER6 1)
     set(GMX_SOFTWARE_INVSQRT OFF CACHE BOOL "Do not use software reciprocal square root on Power6" FORCE)