From 39be7fdb98cdcdfb1da0753410bccfc30cfa9c0d Mon Sep 17 00:00:00 2001 From: jeremiahbuckley Date: Wed, 29 Nov 2023 14:55:15 -0500 Subject: [PATCH] fix rhel cuda install (#1321) Co-authored-by: Cloud User --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 219f60fd..a6bb07cf 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -217,7 +217,7 @@ fi if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\.[0-9]*")" ]; then case $OS_NAME in - centos|rhel) install_cuda_driver_yum 'rhel' $OS_VERSION ;; + centos|rhel) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -d '.' -f 1) ;; rocky) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -c1) ;; fedora) install_cuda_driver_yum $OS_NAME $OS_VERSION ;; amzn) install_cuda_driver_yum 'fedora' '35' ;;