Skip to content
Snippets Groups Projects
Commit 8550cb0f authored by Fabian.Jakub's avatar Fabian.Jakub
Browse files

add an entry to load general packages from the module system at the very...

add an entry to load general packages from the module system at the very beginning of jobs, e.g. to load git
parent 12d8b7de
No related branches found
No related tags found
No related merge requests found
Pipeline #19020 passed
......@@ -4,6 +4,9 @@ WORKDIR=%HPCROOTDIR%
ICON_VERSION=%ICON.VERSION%
COMPILER=%SPACK.COMPILER%
MODULES="%MODULES%"
if [ ! -z "${MODULES}" ]; then module load $(python -c "print(' '.join(${MODULES}))"); fi
# If the workdir directory does not exist create it
if [ ! -d ${WORKDIR} ]; then
mkdir -p ${WORKDIR}
......
......@@ -7,6 +7,10 @@ SPACK_BRANCH=%SPACK.BRANCH%
SPACK_COMPILER=%SPACK.COMPILER%
PYTHON_VERSION=%PYTHON_ENVIRONMENT.PYTHON_VERSION%
MODULES="%MODULES%"
if [ ! -z "${MODULES}" ]; then module load $(python -c "print(' '.join(${MODULES}))"); fi
# Go to the working directory
cd ${WORKDIR}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment