Skip to content

Commit 3e0cf88

Browse files
authored
Merge pull request #1 from ocaisa/fix_cuda_and_libs_install
Fix cuda and libs install
2 parents 2dc460b + 1c31551 commit 3e0cf88

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)