Skip to content

Commit

Permalink
add a bit more debug output, use *SITE_SOFTWARE_PATH and minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Oct 15, 2024
1 parent b68fdfa commit 0e7c9d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions EESSI-install-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ fi
# Allow skipping CUDA SDK install in e.g. CI environments
# The install_cuda... script uses EasyBuild. So, we need to check if we have EB
# or skip this step.
echo "Going to install full CUDA SDK and cu* libraries under host_injections if necessary"
module_avail_out=$TMPDIR/ml.out
module avail 2>&1 | grep EasyBuild &> ${module_avail_out}
if [[ $? -eq 0 ]]; then
Expand Down
8 changes: 5 additions & 3 deletions scripts/gpu_support/nvidia/install_cuda_and_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ show_help() {

# Initialize variables
cuda_eula_accepted=0
cudnn_eula_accepted=0
EASYSTACK_FILE=
TEMP_DIR=

Expand Down Expand Up @@ -91,7 +92,7 @@ else
fi
echo "Created temporary directory '${tmpdir}'"

# use install_path/modules/all as MODULEPATH
# use EESSI_SITE_SOFTWARE_PATH/.modules/all as MODULEPATH
SAVE_MODULEPATH=${MODULEPATH}

for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
Expand All @@ -101,11 +102,12 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
eb_version=$(echo ${EASYSTACK_FILE} | sed 's/.*eb-\([0-9.]*\).*/\1/g')

# Load EasyBuild version for this easystack file _before_ loading EESSI-extend
module avail EasyBuild
module load EasyBuild/${eb_version}
module load EESSI-extend/${EESSI_VERSION}-easybuild

# Install modules in hidden .modules dir to keep track of what was installed before
MODULEPATH=${EASYBUILD_INSTALLPATH}/.modules/all
MODULEPATH=${EESSI_SITE_SOFTWARE_PATH}/.modules/all
echo "set MODULEPATH=${MODULEPATH}"

# show EasyBuild configuration
Expand Down Expand Up @@ -145,7 +147,7 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
# Make sure the cuDNN EULA is accepted if it shall be installed
if [ "${cudnn_install_needed}" -eq 1 ] && [ "${cudnn_eula_accepted}" -ne 1 ]; then
show_help
error="\ncuDNN shall be installed. However, the cuDNNDA EULA has not been accepted\nYou _must_ accept the cuDNN EULA via the appropriate command line option.\n"
error="\ncuDNN shall be installed. However, the cuDNN EULA has not been accepted\nYou _must_ accept the cuDNN EULA via the appropriate command line option.\n"
fatal_error "${error}"
fi

Expand Down

0 comments on commit 0e7c9d8

Please sign in to comment.