Prepare sit for new HAWK setup

* Adapted sit to new lmod module structure
* Added configuration files for available compilers
This commit is contained in:
Christoph Niethammer 2020-02-14 11:04:13 +00:00
parent 1168415054
commit fd85082f18
7 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=clang CXX=clang++"
COMPILER_VERSION_CMD="llvm-config --version"

View file

@ -0,0 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=gcc CXX=g++ F77=gfortran FC=gfortran"
COMPILER_VERSION_CMD="gcc -dumpversion"

View file

@ -0,0 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=icc CXX=icpc F77=ifort FC=ifort"
COMPILER_VERSION_CMD="icc -dumpversion"

View file

@ -0,0 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=clang CXX=clang++"
COMPILER_VERSION_CMD="llvm-config --version"

View file

@ -0,0 +1,3 @@
#!/bin/bash
COMPILER_OPTS="CC=pgcc CXX=pgCC FC=pgf95 F90=pgf90 F77=pgf77"
COMPILER_VERSION_CMD="pgcc -V | awk '/pgcc/{print \$2}' | sed -e 's/-/./'"

View file

@ -0,0 +1 @@
gnu

10
sit
View file

@ -141,6 +141,16 @@ else
echo "Loading compiler module ${COMPILER_MODULE}" echo "Loading compiler module ${COMPILER_MODULE}"
module load ${COMPILER_MODULE} module load ${COMPILER_MODULE}
;; ;;
hawk)
if [ -z "$COMPILER_VERSION" ] ; then
COMPILER_MODULE=${COMPILER}
else
COMPILER_MODULE=${COMPILER}/${COMPILER_VERSION}
fi
echo "Loading compiler module ${COMPILER_MODULE}"
module load ${COMPILER_MODULE}
;;
;;
esac esac
fi fi