To do it, create /etc/modprobe.d/nf file and add the following lines to the file: blacklist nouveau Run: lsmod | grep nouveauĪnd if it prints anything that it means that you have to disable the driver.
HOW CAN I INSTALL CUDA ON UBUNTU 16.04 INSTALL
Install CUDA Disable Nouveau driverįirst, check if your system uses it. If you want to read more about the initial checks and preparations which we have made, you can check a documentation on Nvidia's website here. Īnd for each found element run: sudo dpkg -remove The command above can return nothing or some packages. Sudo apt-get install -y linux-headers-$(uname -r)įirst, locate what you have already installed: dpkg -get-selections | grep cuda | egrep 'install$' Install kernel headers: sudo apt-get update Warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This is free software see the source for copying conditions. Run: uname -m & cat /etc/*release | head -n0Īnd check if your system has GCC installed. Make few initial checks to ensure that everything is in place: GPU deviceĮxecute in a terminal: lspci | grep -i nvidiaĪnd you should see something similar to this: 01:00.0 VGA compatible controller: NVIDIA Corporation Device 1c20 (rev a1)
![how can i install cuda on ubuntu 16.04 how can i install cuda on ubuntu 16.04](https://i.stack.imgur.com/KyYK1.png)
I was really positively surprised how much all CUDA-related tools matured over the time. Luckily, time changed and nowadays, it's much easier and better documented. Several times I messed up so much that it was easier to reinstall the whole OS to have a fresh start than trying to undo everything.
![how can i install cuda on ubuntu 16.04 how can i install cuda on ubuntu 16.04](https://technofob.files.wordpress.com/2017/11/launch-status.png)
I remember when 4 years ago, I was trying to configure CUDA on a laptop with Ubuntu 14.04 and Nvidia Optimus technology - it was a quite tough process.