[Linux] CUDNN Installation

cuDNN v8.2 Installation for CUDA 11.3

1. Download cuDNN

You can download the specific version of cuDNN on the NVIDIA cuDNN home page.

2. Tar File Installation

 2.1 Unzip the cuDNN package.

$ tar -xvf cudnn-linux-$arch-8.x.x.x_cudaX.Y-archive.tar.xz

For me, I used the command line like below.

$ tar -xvf cudnn-11.3-linux-x64-v8.2.0.53.tgz

 2.2 Copy the following files into the CUDA toolkit directory.

$ sudo cp cudnn-*-archive/include/cudnn*.h /usr/local/cuda/include 
$ sudo cp -P cudnn-*-archive/lib/libcudnn* /usr/local/cuda/lib64 
$ sudo chmod a+r /usr/local/cuda/include/cudnn*.h /usr/local/cuda/lib64/libcudnn*

I used the command line like below to copy the necessary file into the CUDA toolkit directory.

$ sudo cp cuda/include/cudnn*.h /usr/local/cuda/include 
$ sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64 
$ sudo chmod a+r /usr/local/cuda/include/cudnn*.h /usr/local/cuda/lib64/libcudnn*

Ref) NVIDIA Installation Guide

 

Leave a Reply

Your email address will not be published. Required fields are marked *