summaryrefslogtreecommitdiffstats
path: root/config/toolchain
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2018-10-29 19:24:08 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2018-10-29 19:24:08 (GMT)
commitb24259ed8cdb273273f82c2b3f3a2dcac60b32ba (patch)
tree4b31e4c5d7c79a7a3639becb093b2d4a0fcd64f4 /config/toolchain
parent7db3ea76da5d3b5c237a707b09d1618d3206ba83 (diff)
downloadhdf5-b24259ed8cdb273273f82c2b3f3a2dcac60b32ba.zip
hdf5-b24259ed8cdb273273f82c2b3f3a2dcac60b32ba.tar.gz
hdf5-b24259ed8cdb273273f82c2b3f3a2dcac60b32ba.tar.bz2
Add files and changes to cross compile with CrayLinuxEnvironment and run
ctest tests with a batch job on knl compute nodes.
Diffstat (limited to 'config/toolchain')
-rw-r--r--config/toolchain/crayle.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/toolchain/crayle.cmake b/config/toolchain/crayle.cmake
new file mode 100644
index 0000000..a83147b
--- /dev/null
+++ b/config/toolchain/crayle.cmake
@@ -0,0 +1,20 @@
+# Uncomment the following to use cross-compiling
+set(CMAKE_SYSTEM_NAME Linux)
+set(CMAKE_COMPILER_VENDOR "CrayLinuxEnvironment")
+
+set(CMAKE_C_COMPILER cc)
+set(CMAKE_Fortran_COMPILER ftn)
+
+# the following is used if cross-compiling
+set(CMAKE_CROSSCOMPILING_EMULATOR "")
+
+# option to use pre-generated H5Tinit.c file
+set(HDF5_USE_PREGEN OFF)
+# directory where H5Tinit.c file will be found
+#set(HDF5_USE_PREGEN_DIR "/lscratch1/lknox/HDF5_1_10_4/CMake-hdf5-1.10.4")
+
+# option to generate H5Tinit.c by running H5detect on knl compute node during build
+set(HDF5_BATCH_H5DETECT ON)
+set(HDF5_BATCH_CMD "sbatch")
+set(HDF5_BATCH_H5DETECT_SCRIPT "knl_H5detect.sl")
+set(MPIEXEC_EXECUTABLE "srun")