update_cuda.sh 469 B

12345678910111213141516
  1. #!/bin/bash
  2. if [ ! -f /home/wareck/.cuda_install ]
  3. then
  4. if [ ! -f cuda_12.3.0_545.23.06_linux.run ]
  5. then
  6. wget https://developer.download.nvidia.com/compute/cuda/12.3.0/local_installers/cuda_12.3.0_545.23.06_linux.run
  7. fi
  8. chmod +x cuda_12.3.0_545.23.06_linux.run
  9. sudo service lightdm stop
  10. touch /home/wareck/.cuda_install
  11. sudo init 3
  12. fi
  13. echo "Updating ..."
  14. sudo rm /tmp/.X1-lock
  15. sudo ./cuda_12.3.0_545.23.06_linux.run --silent --driver
  16. sudo rm /home/wareck/.cuda_install