lspci | grep -i nvidia
cat /proc/driver/nvidia/version
dmesg
dpkg -l | grep -i nvidia
sudo /usr/local/cuda-X.Y/bin/uninstall_cuda_X.Y.pl
sudo /usr/bin/nvidia-uninstall
sudo apt-get --purge remove "*nvidia*" "*cublas*" "cuda*"
- Type
nvidia-smi
to see if it is really disconnected - If it is, then clean up the NVIDIA-related packages and drivers with commands above
- Reinstall CUDA from https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html (including the steps to install the header)