Skip to content

Instantly share code, notes, and snippets.

@lucasmaurice
Last active July 3, 2018 16:59
Show Gist options
  • Save lucasmaurice/1c902a8060543910b8a2bf4bd5ebb92f to your computer and use it in GitHub Desktop.
Save lucasmaurice/1c902a8060543910b8a2bf4bd5ebb92f to your computer and use it in GitHub Desktop.
How to install Cuda on Ubuntu 18.04

Instructions for install Cuda on Ubuntu 18.04

1. Update repository and install drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo ubuntu-drivers autoinstall

2. Reboot your computer

sudo reboot

3. Install development tools

sudo apt install nvidia-cuda-toolkit gcc-6

4. Test Installation: thoses two commands should not return errors:

nvidia-smi
nvcc --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment