Skip to content

Instantly share code, notes, and snippets.

@whlteXbread
Created September 27, 2018 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whlteXbread/74b29bf90ce383b4bed15b2c526dcddd to your computer and use it in GitHub Desktop.
Save whlteXbread/74b29bf90ce383b4bed15b2c526dcddd to your computer and use it in GitHub Desktop.
install cuda/cudnn 9.2 on ubuntu 18.04 because you're a glutton for punishment

DEAR LORD THIS IS A HUGE PAIN IF YOU'RE ON 18.04

okay, what a huge mess. ima go through this real quick before i forget any of it.

  1. install the display driver. right now the ubuntu PPA doesn't have 396 in it so here's some rigamarole:
  2. install 390 first, lol:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-390
  1. restart, lol.
  2. now go into Software & Updates, then click on the Additional Drivers tab, and select the 396 metapackage driver, install it. you have to do this because for some reason you can't select the 396 package in the command line. WTF.
  3. restart? lol.
  4. now install download and install the CUDA stuff, 9.2 in this case
sudo dpkg -i [filename]
sudo apt-get update
sudo apt-get -o Dpkg::Options::="--force-overwrite" install cuda
  1. that will install the binary driver for ubuntu, so then you've got to go back into Software & Updates and reselect the metapackage 396 driver.
  2. ensure that stuff works by going to /usr/local/cuda/samples/ and typing sudo make, then test out the programs to make sure things are good
  3. now install cuDNN!!!!!
  4. download all the stuff from the website
  5. 'dpkg -i` all of them
  6. try to make and run the samples in /usr/src/cudnn_samples_v7/

that worked for me! why doesn't nvidia support 18.04 yet!!!!

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