Prepare sit for new HAWK setup
* Adapted sit to new lmod module structure * Added configuration files for available compilers
This commit is contained in:
parent
1168415054
commit
fd85082f18
7 changed files with 26 additions and 0 deletions
3
etc/platform-configs/hawk/compiler/aocc
Normal file
3
etc/platform-configs/hawk/compiler/aocc
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
COMPILER_OPTS="CC=clang CXX=clang++"
|
||||
COMPILER_VERSION_CMD="llvm-config --version"
|
3
etc/platform-configs/hawk/compiler/gnu
Normal file
3
etc/platform-configs/hawk/compiler/gnu
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
COMPILER_OPTS="CC=gcc CXX=g++ F77=gfortran FC=gfortran"
|
||||
COMPILER_VERSION_CMD="gcc -dumpversion"
|
3
etc/platform-configs/hawk/compiler/intel
Normal file
3
etc/platform-configs/hawk/compiler/intel
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
COMPILER_OPTS="CC=icc CXX=icpc F77=ifort FC=ifort"
|
||||
COMPILER_VERSION_CMD="icc -dumpversion"
|
3
etc/platform-configs/hawk/compiler/llwm
Normal file
3
etc/platform-configs/hawk/compiler/llwm
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
COMPILER_OPTS="CC=clang CXX=clang++"
|
||||
COMPILER_VERSION_CMD="llvm-config --version"
|
3
etc/platform-configs/hawk/compiler/pgi
Normal file
3
etc/platform-configs/hawk/compiler/pgi
Normal 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/-/./'"
|
1
etc/platform-configs/hawk/compiler/system
Symbolic link
1
etc/platform-configs/hawk/compiler/system
Symbolic link
|
@ -0,0 +1 @@
|
|||
gnu
|
10
sit
10
sit
|
@ -141,6 +141,16 @@ else
|
|||
echo "Loading compiler module ${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
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue