File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
scripts/gpu_support/nvidia Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments