bashrc file to include Cuda bin in its path: export PATH="$PATH:/usr/local/cuda-9. LD_LIBRARY_PATH includes /usr/local/cuda-9.2/lib64, or, add /usr/local/cuda-9.2/lib64 to /etc/ld.so.conf and run ldconfig as root Toolkit: Installed in /usr/local/cuda-9.2 You should get output similar to below on complete installation.
UBUNTU 18.04 CUDA 9.2 INSTALL
Once the package has been downloaded locally, make it executable and install it.
UBUNTU 18.04 CUDA 9.2 DRIVER
Since the package size is above 1GB, I'll use wget command to download it so that I can resume easily if the connection gets broken. The CUDA Toolkit contains the CUDA driver and tools needed to create, build and run a CUDA application as well as libraries, header files, CUDA samples source code, and other resources.
![ubuntu 18.04 cuda 9.2 ubuntu 18.04 cuda 9.2](https://tech.amikelive.com/wp-content/uploads/2018/08/cuda_deb_installer_details.png)
I prefer installing CUDA from a runfile on Ubuntu 18.04 since it is hard to encounter dependency issues.Īs of this writing, the latest release of CUDA is v9.2. Download the NVIDIA CUDA Toolkitĭepending on your installation method of choice, you need to download equivalent package. Once this has been installed, you can proceed to install Nvidia CUDA toolkit. Install it on Ubuntu 18.04 using the command: $ sudo apt install nvidia-384 You can install kernel headers and development tools using: $ sudo apt-get install linux-headers-$(uname -r) Install NVIDIA DriverĬUDA needs Nvidia driver installed on your machine. The CUDA Driver requires that the kernel headers and development packages for the running version of the kernel be installed at the time of the driver installation, as well whenever the driver is rebuilt. Verify the system has the correct kernel headers and development packages installed. If not installed, install it with apt-get as below: $ sudo apt install gcc-6 g++-6
![ubuntu 18.04 cuda 9.2 ubuntu 18.04 cuda 9.2](https://cdn-images-1.medium.com/max/800/1*l1T9893SFJweOwzN5KlkAg.png)
Ubuntu 18.04 seems to have a super easy solution (most. However, Linux Mint 18 was based on Ubuntu 16.04, while the newer Linux Mint 19 is based on Ubuntu 18.04 ( wikipedia ). You can check if it's installed using the command: $ gcc -version It was possible to install CUDA on Linux Mint 18.3 even though Linux Mint is not an officially supported distribution. # update-pciids Verify the system has gcc installedįor development using the CUDA, you need to make sure gcc is installed.