]> https://gitweb.dealii.org/ - candi.git/commitdiff
Add cray support
authorRene Gassmoeller <rene.gassmoeller@mailbox.org>
Tue, 13 Jun 2017 16:46:06 +0000 (18:46 +0200)
committerRene Gassmoeller <rene.gassmoeller@mailbox.org>
Tue, 13 Jun 2017 19:27:47 +0000 (21:27 +0200)
candi.sh
deal.II-toolchain/platforms/contributed/cray.platform [new file with mode: 0644]

index ea0c07f085b91368b6d467a9facda6e761600b24..fad4bbdca2122a188323689c28185544440380af 100755 (executable)
--- a/candi.sh
+++ b/candi.sh
@@ -550,7 +550,7 @@ guess_platform() {
     # Try to guess the name of the platform we're running on
     if [ -f /usr/bin/cygwin1.dll ]; then
         echo cygwin
-    
+
     elif [ -f /etc/fedora-release ]; then
         local FEDORANAME=`gawk '{if (match($0,/\((.*)\)/,f)) print f[1]}' /etc/fedora-release`
         case ${FEDORANAME} in
@@ -578,6 +578,9 @@ guess_platform() {
             10.11*)                echo elcapitan;;
             10.12*)                echo sierra;;
         esac
+
+    elif [[ $CRAYOS_VERSION ]]; then
+        echo cray    
     
     elif [ -x /usr/bin/lsb_release ]; then
         local DISTRO=$(lsb_release -i -s)
diff --git a/deal.II-toolchain/platforms/contributed/cray.platform b/deal.II-toolchain/platforms/contributed/cray.platform
new file mode 100644 (file)
index 0000000..e289067
--- /dev/null
@@ -0,0 +1,32 @@
+# Cray
+#
+# Your environment was identified as running the Cray operating system. Note
+# that Cray clusters are usually heavily individualized so this platform file
+# can only act as a guide. It was validated on two different Cray XC40 systems.
+# This build script requires that you have set up the following environment
+# (either once for the current terminal session, or for every session by
+# including the commands into the appropriate section of ~/.bashrc). To
+# successfully compile you will also need access to the cray modules.
+# Additionally you will need any cmake version >= 2.8.12. If there is no
+# such version or module on your system add "once:cmake" to the list of 
+# packages in deal.II-toolchain/platforms/contributed/cray.platform.
+#
+#   Necessary module commands:
+#   module load PrgEnv-gnu cray-libsci
+#   module unload atp # this module caused linker errors on some systems
+#
+#   Necessary environment variables:
+#   export CRAYPE_LINK_TYPE=dynamic
+#   export CC=cc
+#   export CXX=CC
+#   export FC=ftn
+#   export FF=ftn
+#   export F77=ftn
+# 
+##
+
+PACKAGES="load:dealii-prepare once:p4est once:trilinos once:petsc dealii"
+
+TRILINOS_CONFOPTS="-DBUILD_SHARED_LIBS=ON -D BLAS_LIBRARY_DIRS=$CRAY_LIBSCI_PREFIX_DIR/lib -D BLAS_INCLUDE_DIRS=$CRAY_LIBSCI_PREFIX_DIR/include -D BLAS_LIBRARY_NAMES=sci_gnu -D LAPACK_LIBRARY_DIRS=$CRAY_LIBSCI_PREFIX_DIR/lib -D LAPACK_INCLUDE_DIRS=$CRAY_LIBSCI_PREFIX_DIR/include -D LAPACK_LIBRARY_NAMES=sci_gnu"
+
+DEAL_CONFOPTS=" -D DEAL_II_WITH_LAPACK=OFF -D DEAL_II_WITH_BLAS=OFF -D DEAL_II_WITH_GSL=OFF  -D DEAL_II_WITH_BZIP2=OFF -D DEAL_II_FORCE_BUNDLED_BOOST=ON -D DEAL_II_WITH_UMFPACK=OFF -D MPI_INCLUDE_PATH=$MPICH_DIR/include -D MPI_CXX_LIBRARIES=\"$MPICH_DIR/lib/libmpichcxx.so;$MPICH_DIR/lib/libmpich.so\" "

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.