Skip to content

Instantly share code, notes, and snippets.

@goodfeel
Created May 3, 2017 04:14
Show Gist options
  • Save goodfeel/84c3c4e1e3821c3ff80dbb9456b59451 to your computer and use it in GitHub Desktop.
Save goodfeel/84c3c4e1e3821c3ff80dbb9456b59451 to your computer and use it in GitHub Desktop.
Nvidia CUDA installation on Ubuntu 16.04

This done on Alienware PC

Step

  1. Install fresh 16.04TLS
  2. Download CUDA library (.run)
  3. Go to Terminal mode (Ctrl + Alt + F1)
  4. Stop lightdm (service lightdm stop)
  5. Chmod +x and run CUDA installer (sudo su ./cuda...run)
  6. It will fail due to Noveau thing so should restart and run step 5 again.
  7. Setup bash profile for PATH to include (/usr/local/cuda)
  8. Run nvcc -V to check that CUDA is fully installed.

Possible Failure

Should step 6 failed, run:

sudo update-initramfs -u

It might be error booting up, just go to command mode (Ctrl + Alt + F1) and run step 6 again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment