From d543bbca4ae97e2c9ddec7385deb1f2b0cdc8e8e Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 13 Oct 2026 10:22:40 +0200 Subject: [PATCH 1/5] Show the CLI option to accept cuDNN/CUDA EULAs instead of full help Instead of showing the whole usage just state the command line option to use. --- scripts/gpu_support/nvidia/install_cuda_and_libraries.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh index 3ac19226..bb5918c5 100755 --- a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh +++ b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh @@ -192,8 +192,7 @@ for EASYSTACK_FILE in ${NVIDIA_EASYSTACKS_DIRECTORY}/eessi-*CUDA*.yml; do # Make sure the CUDA EULA is accepted if it shall be installed if [ "${cuda_install_needed}" -eq 1 ] && [ "${cuda_eula_accepted}" -ne 1 ]; then - show_help - error="\nCUDA shall be installed. However, the CUDA EULA has not been accepted\nYou _must_ accept the CUDA EULA via the appropriate command line option.\n" + error="\nCUDA shall be installed. However, the CUDA EULA has not been accepted\nYou _must_ accept the CUDA EULA via the '--accept-cuda-eula' command line option.\n" fatal_error "${error}" fi @@ -207,8 +206,7 @@ for EASYSTACK_FILE in ${NVIDIA_EASYSTACKS_DIRECTORY}/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 cuDNN 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 '--accept-cudnn-eula' command line option.\n" fatal_error "${error}" fi From 95d01d6a74f884be67bfbfb3ba3771065c8d1b2f Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 13 Oct 2026 10:26:45 +0200 Subject: [PATCH 2/5] Show script name in error message Updated error messages to include the script name for EULA acceptance instructions. --- scripts/gpu_support/nvidia/install_cuda_and_libraries.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh index bb5918c5..82e85c4a 100755 --- a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh +++ b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh @@ -192,7 +192,7 @@ for EASYSTACK_FILE in ${NVIDIA_EASYSTACKS_DIRECTORY}/eessi-*CUDA*.yml; do # Make sure the CUDA EULA is accepted if it shall be installed if [ "${cuda_install_needed}" -eq 1 ] && [ "${cuda_eula_accepted}" -ne 1 ]; then - error="\nCUDA shall be installed. However, the CUDA EULA has not been accepted\nYou _must_ accept the CUDA EULA via the '--accept-cuda-eula' command line option.\n" + error="\nCUDA shall be installed. However, the CUDA EULA has not been accepted\nYou _must_ accept the CUDA EULA via the '--accept-cuda-eula' command line option to $0.\n" fatal_error "${error}" fi @@ -206,7 +206,7 @@ for EASYSTACK_FILE in ${NVIDIA_EASYSTACKS_DIRECTORY}/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 - error="\ncuDNN shall be installed. However, the cuDNN EULA has not been accepted\nYou _must_ accept the cuDNN EULA via the '--accept-cudnn-eula' 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 '--accept-cudnn-eula' command line option to $0.\n" fatal_error "${error}" fi From 6ae3f85a216a66e87b5551b8599fcaea6891bdc5 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Wed, 28 Oct 2026 14:32:30 +0100 Subject: [PATCH 3/5] Include EULA links for CUDA and cuDNN in EULA acceptance error messages --- .../gpu_support/nvidia/install_cuda_and_libraries.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh index 82e85c4a..c615b72b 100755 --- a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh +++ b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh @@ -192,8 +192,10 @@ for EASYSTACK_FILE in ${NVIDIA_EASYSTACKS_DIRECTORY}/eessi-*CUDA*.yml; do # Make sure the CUDA EULA is accepted if it shall be installed if [ "${cuda_install_needed}" -eq 1 ] && [ "${cuda_eula_accepted}" -ne 1 ]; then - error="\nCUDA shall be installed. However, the CUDA EULA has not been accepted\nYou _must_ accept the CUDA EULA via the '--accept-cuda-eula' command line option to $0.\n" - fatal_error "${error}" + error="CUDA shall be installed. However, the CUDA EULA has not been accepted\n" + error+=You _must_ accept the CUDA EULA via the '--accept-cuda-eula' command line option to $0.\n" + error+="See the EULA at https://docs.nvidia.com/cuda/eula/index.html" + fatal_error "\n${error}\n" fi # Check if cdDNN shall be installed @@ -206,8 +208,10 @@ for EASYSTACK_FILE in ${NVIDIA_EASYSTACKS_DIRECTORY}/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 - error="\ncuDNN shall be installed. However, the cuDNN EULA has not been accepted\nYou _must_ accept the cuDNN EULA via the '--accept-cudnn-eula' command line option to $0.\n" - fatal_error "${error}" + error="cuDNN shall be installed. However, the cuDNN EULA has not been accepted\n" + error+="You _must_ accept the cuDNN EULA via the '--accept-cudnn-eula' command line option to $0.\n" + error+="See the EULA at https://docs.nvidia.com/deeplearning/cudnn/latest/reference/eula.html" + fatal_error "\n${error}\n" fi # determine the number of packages to be installed (assume 5 GB + num_packages * From 07335425a9a29514450ce49555d3e21737346587 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Wed, 28 Oct 2026 16:12:28 +0100 Subject: [PATCH 4/5] Use variables for EULA URLs --- .../gpu_support/nvidia/install_cuda_and_libraries.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh index c615b72b..f4a98f09 100755 --- a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh +++ b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh @@ -19,6 +19,9 @@ TOPDIR=$(dirname $(realpath $BASH_SOURCE)) source "$TOPDIR"/../../utils.sh +EULA_URL_CUDA="https://docs.nvidia.com/cuda/eula/index.html" +EULA_URL_CUDNN="https://docs.nvidia.com/deeplearning/cudnn/latest/reference/eula.html" + # Function to display help message show_help() { echo "Usage: $0 [OPTIONS]" @@ -26,10 +29,10 @@ show_help() { echo " --help Display this help message" echo " --accept-cuda-eula You _must_ accept the CUDA EULA to install" echo " CUDA, see the EULA at" - echo " https://docs.nvidia.com/cuda/eula/index.html" + echo " $EULA_URL_CUDA" echo " --accept-cudnn-eula You _must_ accept the cuDNN EULA to install" echo " cuDNN, see the EULA at" - echo " https://docs.nvidia.com/deeplearning/cudnn/latest/reference/eula.html" + echo " $EULA_URL_CUDNN" echo " -t, --temp-dir /path/to/tmpdir Specify a location to use for temporary" echo " storage during the installation of CUDA" echo " and/or other libraries (must have" @@ -194,7 +197,7 @@ for EASYSTACK_FILE in ${NVIDIA_EASYSTACKS_DIRECTORY}/eessi-*CUDA*.yml; do if [ "${cuda_install_needed}" -eq 1 ] && [ "${cuda_eula_accepted}" -ne 1 ]; then error="CUDA shall be installed. However, the CUDA EULA has not been accepted\n" error+=You _must_ accept the CUDA EULA via the '--accept-cuda-eula' command line option to $0.\n" - error+="See the EULA at https://docs.nvidia.com/cuda/eula/index.html" + error+="See the EULA at $EULA_URL_CUDA" fatal_error "\n${error}\n" fi @@ -210,7 +213,7 @@ for EASYSTACK_FILE in ${NVIDIA_EASYSTACKS_DIRECTORY}/eessi-*CUDA*.yml; do if [ "${cudnn_install_needed}" -eq 1 ] && [ "${cudnn_eula_accepted}" -ne 1 ]; then error="cuDNN shall be installed. However, the cuDNN EULA has not been accepted\n" error+="You _must_ accept the cuDNN EULA via the '--accept-cudnn-eula' command line option to $0.\n" - error+="See the EULA at https://docs.nvidia.com/deeplearning/cudnn/latest/reference/eula.html" + error+="See the EULA at $EULA_URL_CUDNN" fatal_error "\n${error}\n" fi From 18ca361827ba350b906a4734ba26f4eafa6c1fd8 Mon Sep 17 00:00:00 2001 From: ocaisa Date: Wed, 28 Oct 2026 16:24:02 +0100 Subject: [PATCH 5/5] Typo --- scripts/gpu_support/nvidia/install_cuda_and_libraries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh index 45160b65..f77b76db 100755 --- a/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh +++ b/scripts/gpu_support/nvidia/install_cuda_and_libraries.sh @@ -196,7 +196,7 @@ for EASYSTACK_FILE in ${NVIDIA_EASYSTACKS_DIRECTORY}/eessi-*CUDA*.yml; do # Make sure the CUDA EULA is accepted if it shall be installed if [ "${cuda_install_needed}" -eq 1 ] && [ "${cuda_eula_accepted}" -ne 1 ]; then error="CUDA shall be installed. However, the CUDA EULA has not been accepted\n" - error+=You _must_ accept the CUDA EULA via the '--accept-cuda-eula' command line option to $0.\n" + error+="You _must_ accept the CUDA EULA via the '--accept-cuda-eula' command line option to $0.\n" error+="See the EULA at $EULA_URL_CUDA" fatal_error "\n${error}\n" fi