For Ubuntu, to install zlib package, run:
sudo apt-get install zlib1g
Procedure
- Go to: NVIDIA cuDNN home page.
- Click Download.
- Complete the short survey and click Submit.
- Accept the Terms and Conditions. A list of available download versions of cuDNN displays.
- Select the cuDNN version you want to install. A list of available resources displays.
- Unzip the cuDNN package.
tar -xzvf cudnn-10.2-linux-x64-v8.1.1.33.tgz
- Copy the following files 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*