Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Upgrading to CUDA 10.0 on Ubuntu 18.04


I remember setting up cuda 9.0 was quite challenging for me and I expected 10.0 to be no different However, to my surprise the installation was rather easy


Download CUDA 10.0, I chose the following options:

Option Value
Operating System Linux
Architecture x86_64
Distribution Ubuntu
Version 18.04
Installer Type runfile(local)

This CUDA installation link will populate these options for you.


Before starting the installation, I checked my cuda version (mine was cuda 9.0)

nvcc --version

Switch to run level 3, I've had issues in the past where upgrading video drivers failed because X was running

sudo init 3

Install cuda 10 by running and following the command-line prompts (I chose not to link cuda 10.0 to /usr/local/cuda because I prefer to keep multiple cuda versions that live in their own directories e.g. /usr/local/cuda-9.0 but if you just want one you can let installer link new cuda version to /usr/local/cuda)

sudo sh

And Done, thats it. Well almost, we also need to add it to the path I updated mine using

vi ~/.bashrc

And updating cuda version

export PATH=/usr/local/cuda-10.0/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH

Done, now just source the bashrc file again to load the changes

source ~/.bashrc


check cuda version

nvcc --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.