cuDNN is a GPU-accelerated library of primitives for use with deep neural networks.


Create an NVIDIA developer account from which to download the cuDNN package matching your NVIDIA CUDA version, and appropriate for your Linux distribution. See


  1. Install the cuDNN package by running the command sequence for your Linux distribution.
    • Ubuntu version 20.04
      sudo dpkg -i libcudnn8_8.0.5.39-1+cuda11.0_amd64.deb
    • CentOS 8 and Red Hat Linux 8
      sudo rpm -ivh libcudnn8-
  2. To verify that cuDNN is installed, run ldconfig -p | grep cudnn.

What to do next