From d543bbca4ae97e2c9ddec7385deb1f2b0cdc8e8e Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 13 Oct 2026 10:22:40 +0200 Subject: [PATCH 1/2] 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/2] 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