Fix issues with system platform target in absence of a system module

Signed-off-by: Christoph Niethammer <niethammer@hlrs.de>
This commit is contained in:
Christoph Niethammer 2024-03-28 03:50:48 +01:00
parent 2dd3208723
commit 1474a6b7b1

7
sit
View file

@ -143,7 +143,12 @@ case $PLATFORM in
esac
echo "Loading modules: ${COMPILER_MODULE} ${MPI_MODULE}"
module load ${COMPILER_MODULE} ${MPI_MODULE}
if [ ! -z "$COMPILER_MODULE" ] ; then
module load ${COMPILER_MODULE}
fi
if [ ! -z "$MPI_MODULE" ] ; then
module load ${MPI_MODULE}
fi
if [ ! -z "${COMPILER}" ] ; then
# reevaluate compiler version