Ubuntu 18.04 CUDA/cuDNN Installation

Tutorial of installing CUDA and cuDNN for Nvidia GPU.

WesleyCh3n
Sep 9, 2021

Remove older version of CUDA/CuDNN

Go to /usr/local/ see if there are any cuda-x.x folder. Then remove it with:

sudo rm -rf /usr/local/cuda-x.x/

Install CUDA

  • Follow the instruction

In this time, like this:

  • After installation complete, add below PATH variable to the shelrc (bashrc) you use: [Ref]
  • CUDA installed

Install CuDNN

  • Extract it and copy to the right place
  • Verify Version
  • cuDNN installed

--

--