Member-only story
Installing CUDA Library in Ubuntu 18.04
In this blog, I will demonstrate how to install CUDA 10.0
library in Ubuntu 18.04.
Note: The process mentioned here should work for other versions of the CUDA library and should also work for other versions of the Ubuntu Operating System.
Step 1: Install the latest Nvidia driver or compatible Nvidia driver for CUDA 10.0
. You can check which Nvidia driver is compatible with CUDA 10.0
from here.
$ sudo add-apt-repository ppa:graphics-drivers
$ sudo apt-get update
$ sudo apt-get install nvidia-driver-450
Restart the machine and check if Nvidia drivers are successfully installed by issuing the following command.
$ nvidia-smi
Note: Don’t panic by seeing
CUDA 11.0
(or other CUDA version) at the top right corner in the above output. It does not represent CUDA installed in the system, there is another command to check the CUDA version installed in the system, I will show it later.
Step 2: Download CUDA 10.0
library and Patch runfile installer from here by selecting the following options.