Skip to content

Commit add793e

Browse files
committed
Don't use a site installation mode when installing CUDA and libraries
1 parent 2dc460b commit add793e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scripts/gpu_support/nvidia/install_cuda_and_libraries.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,15 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
109109
fi
110110
module load EasyBuild/${eb_version}
111111

112-
# Make sure EESSI-extend does a site install here
113-
# We need to reload it with the current environment variables set
112+
# Even though EESSI-extend should target a site install here, we tell EESSI-extend
113+
# that it is a project installation so that the packages do not get installed under
114+
# an accelerator subdirectory if there is a GPU available (which is enforced for site
115+
# installations).
116+
module unload EESSI-extend
114117
unset EESSI_CVMFS_INSTALL
115-
unset EESSI_PROJECT_INSTALL
118+
unset EESSI_SITE_INSTALL
119+
export EESSI_PROJECT_INSTALL="$EESSI_SITE_SOFTWARE_PATH"
116120
unset EESSI_USER_INSTALL
117-
export EESSI_SITE_INSTALL=1
118121
module unload EESSI-extend
119122
ml_av_eessi_extend_out=${tmpdir}/ml_av_eessi_extend.out
120123
# need to use --ignore_cache to avoid the case that the module was removed (to be

0 commit comments

Comments
 (0)