This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Verify if GPU is CUDA-enabled | |
lspci | grep -i nvidia | |
# Remove previous NVIDIA driver installation | |
sudo apt-get purge nvidia* -y | |
sudo apt remove nvidia-* -y | |
sudo rm /etc/apt/sources.list.d/cuda* -y | |
sudo apt-get autoremove && sudo apt-get autoclean -y |