Skip to content

Commit

Permalink
attempt to use a single easystack file for CUDA/cu* packages
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Oct 4, 2024
1 parent 97d5b67 commit 8e7a0e8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
7 changes: 6 additions & 1 deletion EESSI-install-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,14 @@ fi

temp_install_storage=${TMPDIR}/temp_install_storage
mkdir -p ${temp_install_storage}
# Note the eessi...CUDA.yml file(s) is(are) copied by 'install_scripts.sh' from
# the EESSI/software-layer easystacks/software.eessi.io/2023.06/accel/nvidia
# directory to /cvmfs to avoid keeping them in sync manually. If more than one
# such file is used (e.g., because different EasyBuild versions were used), the
# install script 'install_cuda_and_libraries.sh' has to be run multiple times.
if [ -z "${skip_cuda_install}" ] || [ ! "${skip_cuda_install}" ]; then
${EESSI_PREFIX}/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh \
-e ${EESSI_PREFIX}/scripts/gpu_support/nvidia/eessi-2023.06-cuda-and-libraries.yml \
-e ${EESSI_PREFIX}/scripts/gpu_support/nvidia/eessi-2023.06-eb-4.9.4-2023a-CUDA.yml \
-t ${temp_install_storage} \
--accept-cuda-eula
else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
easyconfigs:
- CUDA-12.1.1.eb
- cuDNN-8.9.2.26-CUDA-12.1.1.eb
12 changes: 11 additions & 1 deletion install_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,23 @@ copy_files_by_list ${TOPDIR}/scripts ${INSTALL_PREFIX}/scripts "${script_files[@

# Copy files for the scripts/gpu_support/nvidia directory
nvidia_files=(
eessi-2023.06-cuda-and-libraries.yml
install_cuda_and_libraries.sh
install_cuda_host_injections.sh
link_nvidia_host_libraries.sh
)
copy_files_by_list ${TOPDIR}/scripts/gpu_support/nvidia ${INSTALL_PREFIX}/scripts/gpu_support/nvidia "${nvidia_files[@]}"

# special treatment for the easystack file(s) that lists CUDA and cu* libraries
# To be picked up by a build job they have to be stored under
# easystacks/software.eessi.io/2023.06/accel/nvidia/ on GitHub.
# To avoid keeping that file and the one that we distribute via CernVM-FS so
# users/sites can install the full CUDA SDK and cu* libraries under
# 'host_injections' we copy the above file to the right location under /cvmfs.
nvidia_host_injections_files=(
eessi-2023.06-eb-4.9.4-2023a-CUDA.yml
)
copy_files_by_list ${TOPDIR}/easystacks/software.eessi.io/2023.06/accel/nvidia ${INSTALL_PREFIX}/scripts/gpu_support/nvidia "${nvidia_host_injections_files[@]}"

# Copy over EasyBuild hooks file used for installations
hook_files=(
eb_hooks.py
Expand Down

This file was deleted.

0 comments on commit 8e7a0e8

Please sign in to comment.