Skip to content

Commit

Permalink
install_cuda_host_injections: Fix CUDA-EC-not-found error message
Browse files Browse the repository at this point in the history
The search query is a regexp not a glob, so add the missing dot.
Also add the missing "of CUDA" in the message
  • Loading branch information
Flamefire committed Sep 12, 2024
1 parent e5c2612 commit 007712c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/gpu_support/nvidia/install_cuda_host_injections.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ else
# Check the exit code
if [ $? -ne 0 ]; then
eb_version=$(eb --version)
available_cuda_easyconfigs=$(eb --search ^CUDA-*.eb|grep CUDA)
available_cuda_easyconfigs=$(eb --search "^CUDA-.*.eb"|grep CUDA)

error="The easyconfig ${cuda_easyconfig} was not found in EasyBuild version:\n"
error="${error} ${eb_version}\n"
error="${error}You either need to give a different version of CUDA to install _or_ \n"
error="${error}use a different version of EasyBuild for the installation.\n"
error="${error}\nThe versions of available with the current eb command are:\n"
error="${error}\nThe versions of CUDA available with the current eb command are:\n"
error="${error}${available_cuda_easyconfigs}"
fatal_error "${error}"
fi
Expand Down

0 comments on commit 007712c

Please sign in to comment.