Add support for the HLRS training cluster to sit

Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
This commit is contained in:
Christoph Niethammer 2024-10-08 10:43:03 +02:00
parent 8cc5bf4062
commit 06885b9e98
6 changed files with 19 additions and 0 deletions

View file

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

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

6
sit
View file

@ -132,6 +132,12 @@ case $PLATFORM in
MPI_VERSION_NUM=${MPI_VERSION%%-*}
sit_info_verbose "MPI version num: $MPI_VERSION_NUM"
;;
training)
COMPILER_MODULE=compiler/${COMPILER}${COMPILER_VERSION:+"/${COMPILER_VERSION}"}
MPI_MODULE=${MPI}${MPI_VERSION:+"/${MPI_VERSION}"}
MPI_VERSION_NUM=${MPI_VERSION%%-*}
sit_info_verbose "MPI version num: $MPI_VERSION_NUM"
;;
system)
echo "Using system default compiler and MPI"
COMPILER="" # prevent any compiler specs in the prefix