fix rhel cuda install (#1321)
Co-authored-by: Cloud User <azureuser@testgpu2.hqzwom21okjenksna4y3c4ymjd.phxx.internal.cloudapp.net>
This commit is contained in:
parent
c2e3b89176
commit
39be7fdb98
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ fi
|
||||||
|
|
||||||
if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\.[0-9]*")" ]; then
|
if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\.[0-9]*")" ]; then
|
||||||
case $OS_NAME in
|
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) ;;
|
rocky) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -c1) ;;
|
||||||
fedora) install_cuda_driver_yum $OS_NAME $OS_VERSION ;;
|
fedora) install_cuda_driver_yum $OS_NAME $OS_VERSION ;;
|
||||||
amzn) install_cuda_driver_yum 'fedora' '35' ;;
|
amzn) install_cuda_driver_yum 'fedora' '35' ;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue