Home How to properly install CUDA on Ubuntu Linux (NVCC)
Post
Cancel

How to properly install CUDA on Ubuntu Linux (NVCC)

Install

  1. Follow this: https://developer.nvidia.com/cuda-downloads
  2. Reboot computer
  3. Open a terminal and run nvidia-smi as a check
  4. Run the following in the terminal (source: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html):
1
nano /home/username/.bashrc

write the following 2 lines in the bashrc file:

1
2
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}$
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  1. open up a new terminal window and do nvcc –version to check if everything is working

If you want to work with .cu scripts in vscode, install nsight extension (only extension made by Nvidia)

Guide for trouble shooting: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

This post is licensed under CC BY 4.0 by the author.

Install fastAI on Computer (Linux)

Running MATLAB files/functions in Python (Windows & Anaconda)