Yet Another Blog on Installing CUDA 10.2 on Ubuntu 18.04 MSI Laptop

Venkata Chintapalli
1 min readMay 23, 2020

--

I ended up spending a non-trivial amount of time installing CUDA 10.2 on Ubuntu 18.04 on with intel 10thGen CPU and NVIDIA GEFORCE RTX 2060 GPU. Here is the recipe that worked for me. I hope this helps you if you have a similar configuration.

Step1: Disable the nouveau driver instructions from NVIDIA site.

# Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the following contents:
$ blacklist nouveau options nouveau modeset=0
# Regenerate the kernel initramfs:
$ sudo update-initramfs -u

Step2: Reboot

Step 3: Install CUDA using local runfile.

Installing CuDNN should be straight forward from here. This also fixed an issue with connecting to my external monitor using HDMI. Kudos to all the people posting their solutions on blogs, forums, Github, and medium pages.

--

--

Venkata Chintapalli

Machine Learning, Hardware, and High-Performance infrastructure enthusiast. Holds MS in Machine Learning GeorgiaTech and MTech in Electronics Design from IISc.