Skip to content

Commit ce4f213

Browse files
authored
Merge pull request #46 from ocaisa/fix_cuda_and_libs_install
Don't use an `accel` subdirectory when installing CUDA and libraries to unbreak symlinks
2 parents e5c9a1e + 1c31551 commit ce4f213

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/gpu_support/nvidia/install_cuda_and_libraries.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,16 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
130130
module --ignore_cache load EESSI-extend/${EESSI_EXTEND_VERSION}
131131
unset EESSI_EXTEND_VERSION
132132

133+
# If there is a GPU on the node, the installation path will by default have an
134+
# accelerator subdirectory. For CUDA and cu*, these are binary installations and
135+
# don't care about the target compute capability. Our hooks are aware of this and
136+
# therefore expect CUDA to be available under EESSI_SITE_SOFTWARE_PATH
137+
export EASYBUILD_INSTALLPATH=$EESSI_SITE_SOFTWARE_PATH
138+
133139
# Install modules in hidden .modules dir to keep track of what was installed before
134140
# (this action is temporary, and we do not call Lmod again within the current shell context, but in EasyBuild
135141
# subshells, so loaded modules are not automatically unloaded)
136-
MODULEPATH=${EESSI_SITE_SOFTWARE_PATH}/.modules/all
142+
MODULEPATH=${EASYBUILD_INSTALLPATH}/.modules/all
137143
echo "set MODULEPATH=${MODULEPATH}"
138144

139145
# We don't want hooks used in this install, we need vanilla installations

0 commit comments

Comments
 (0)