From 12b8a654c6f7803495e2111d94fa9724bf822a81 Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller Date: Tue, 13 Jun 2017 18:46:06 +0200 Subject: [PATCH] Add cray support --- candi.sh | 5 ++- .../platforms/contributed/cray.platform | 32 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 deal.II-toolchain/platforms/contributed/cray.platform diff --git a/candi.sh b/candi.sh index ea0c07f..fad4bbd 100755 --- 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 index 0000000..e289067 --- /dev/null +++ b/deal.II-toolchain/platforms/contributed/cray.platform @@ -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\" " -- 2.39.5