diff --git a/env.sh b/env.sh index 6fff86847..6ab2d3799 100755 --- a/env.sh +++ b/env.sh @@ -54,6 +54,11 @@ elif [[ $LOGINHOST =~ ^m[A-Za-z0-9]+\.hpc\.dkrz\.de$ ]]; then STRATEGY="mistral.dkrz.de" elif [[ $LOGINHOST =~ ^levante ]] || [[ $LOGINHOST =~ ^l[:alnum:]+\.lvt\.dkrz\.de$ ]]; then STRATEGY="levante.dkrz.de" + # following regex only matches if input is 2 word like levante.nvhpc + compid_regex="^([[:alnum:]]+)\.([[:alnum:]]+)$" + if [[ $LOGINHOST =~ $compid_regex ]]; then + COMPILERID="${BASH_REMATCH[2]}" + fi elif [[ $LOGINHOST =~ ^ollie[0-9]$ ]] || [[ $LOGINHOST =~ ^prod-[0-9]{4}$ ]]; then STRATEGY="ollie" elif [[ $LOGINHOST =~ ^albedo[0-9]$ ]] || [[ $LOGINHOST =~ ^prod-[0-9]{4}$ ]]; then diff --git a/env/levante.dkrz.de/shell.gnu b/env/levante.dkrz.de/shell.gnu index fd85dc154..4bacf20aa 100755 --- a/env/levante.dkrz.de/shell.gnu +++ b/env/levante.dkrz.de/shell.gnu @@ -18,8 +18,7 @@ export FC=mpif90 CC=mpicc CXX=mpicxx # following is only needed for libblas which is needed by params lib and often provided by lapack #module load intel-oneapi-mkl/2022.0.1-gcc-11.2.0 # so use the LD_LIBRARY_PATH or other paths like prefix paths etc for cmake -#export LD_LIBRARY_PATH=/sw/spack-levante/intel-oneapi-mkl-2022.0.1-ttdktf/mkl/2022.0.1/lib/intel64:$LD_LIBRARY_PATH -spack load intel-oneapi-mkl@2022.0.1%gcc@11.2.0 +#export LD_LIBRARY_PATH=/sw/spack-levante/intel-oneapi-mkl-2022.0.1-ttdktf/mkl/2022.0.1/lib/intel64:$LD_LIBRARY_PATH spack load intel-oneapi-mkl@2022.0.1%gcc@11.2.0 #other alternative blas #spack load netlib-lapack@3.9.1%gcc@11.2.0