I'm trying to set up my system for CUDA by installing the lastest NVIDIA drivers. I've already installed the drivers, but still get an error when running
~ nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
After getting this message, I followed a few various tutorials, namely this one: Issues with Nvidia graphics driver and CUDA after apt-get upgrade\
But when I try and purge the old drivers, I get an error:
~ sudo apt-get purge nvidia* zsh: no matches found: nvidia* (**EDIT**: THIS HAS BEEN FIXED, I CAN NOW PURGE, but that didn't help)
Yet, I can't just install the most recent drivers, because they are already installed.
~ sudo apt-get install nvidia-driver-396 Reading package lists... Done Building dependency tree Reading state information... Done nvidia-driver-396 is already the newest version (396.54-0ubuntu0~gpu18.04.1). The following packages were automatically installed and are no longer required: libnvidia-common-390 libwayland-client0:i386 libwayland-server0:i386 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I think my best bet at this point is still to delete and reinstall the driver, but I'm not sure how to do that. And I don't know why the driver isn't being used.
lsmod | grep nvidia dmesg | grep NVRM
also return nothing.
Why is the driver still not registered? Any help is appreciated.
Edit I was able to purge the existing nvidia and try again, but it's still not working.
It seems that the problem might be that nouveau isn't disabled properly.
When I check which driver is being used:
➜ Documents sudo lshw -class video | grep driver= configuration: driver=nouveau latency=0 configuration: driver=i915 latency=0
So it's still there. I had used this site https://linuxconfig.org/how-to-disable-nouveau-nvidia-driver-on-ubuntu-18-04-bionic-beaver-linux to guide me through disabling it. Running the following command gives the expected result:
➜ Documents cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf blacklist nouveau options nouveau modeset=0
And it still doesn't work. Thoughts?