Skip to content

Commit 2f025d0

Browse files
author
Caspar van Leeuwen
committed
Move EESSI-extend unload up to avoid EASYBUILD_ config variables lingering that are not supported in older versions
1 parent cd982fb commit 2f025d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/gpu_support/nvidia/install_cuda_and_libraries.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
107107
echo_yellow ">> No EasyBuild/${eb_version} module found: skipping step to install easystack file ${easystack_file} (see output in ${module_avail_out})"
108108
continue
109109
fi
110+
# Need to unload EESSI-extend before loading an EasyBuild version, as the unload behavior is dependent on the current EasyBuild version loaded
111+
module unload EESSI-extend
110112
module load EasyBuild/${eb_version}
111113

112114
# Make sure EESSI-extend does a site install here
@@ -115,7 +117,6 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
115117
unset EESSI_PROJECT_INSTALL
116118
unset EESSI_USER_INSTALL
117119
export EESSI_SITE_INSTALL=1
118-
module unload EESSI-extend
119120
ml_av_eessi_extend_out=${tmpdir}/ml_av_eessi_extend.out
120121
# need to use --ignore_cache to avoid the case that the module was removed (to be
121122
# rebuilt) but it is still in the cache and the rebuild failed

0 commit comments

Comments
 (0)