From 06885b9e984fcd4e2bab658df045b8a75d1ebc75 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Tue, 8 Oct 2024 10:43:03 +0200 Subject: [PATCH] Add support for the HLRS training cluster to sit Signed-off-by: Christoph Niethammer --- etc/platform-configs/training/compiler/gcc | 3 +++ etc/platform-configs/training/compiler/intel | 3 +++ etc/platform-configs/training/compiler/llwm | 3 +++ etc/platform-configs/training/compiler/pgi | 3 +++ etc/platform-configs/training/compiler/system | 1 + sit | 6 ++++++ 6 files changed, 19 insertions(+) create mode 100644 etc/platform-configs/training/compiler/gcc create mode 100644 etc/platform-configs/training/compiler/intel create mode 100644 etc/platform-configs/training/compiler/llwm create mode 100644 etc/platform-configs/training/compiler/pgi create mode 120000 etc/platform-configs/training/compiler/system diff --git a/etc/platform-configs/training/compiler/gcc b/etc/platform-configs/training/compiler/gcc new file mode 100644 index 0000000..120cbfa --- /dev/null +++ b/etc/platform-configs/training/compiler/gcc @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=gcc CXX=g++ F77=gfortran FC=gfortran" +COMPILER_VERSION_CMD="gcc -dumpfullversion" diff --git a/etc/platform-configs/training/compiler/intel b/etc/platform-configs/training/compiler/intel new file mode 100644 index 0000000..846d854 --- /dev/null +++ b/etc/platform-configs/training/compiler/intel @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=icc CXX=icpc F77=ifort FC=ifort" +COMPILER_VERSION_CMD="icc -dumpversion" diff --git a/etc/platform-configs/training/compiler/llwm b/etc/platform-configs/training/compiler/llwm new file mode 100644 index 0000000..9307322 --- /dev/null +++ b/etc/platform-configs/training/compiler/llwm @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=clang CXX=clang++" +COMPILER_VERSION_CMD="llvm-config --version" diff --git a/etc/platform-configs/training/compiler/pgi b/etc/platform-configs/training/compiler/pgi new file mode 100644 index 0000000..4891bef --- /dev/null +++ b/etc/platform-configs/training/compiler/pgi @@ -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/-/./'" diff --git a/etc/platform-configs/training/compiler/system b/etc/platform-configs/training/compiler/system new file mode 120000 index 0000000..9893768 --- /dev/null +++ b/etc/platform-configs/training/compiler/system @@ -0,0 +1 @@ +gnu \ No newline at end of file diff --git a/sit b/sit index 173d704..e7b0864 100755 --- a/sit +++ b/sit @@ -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