Skip to navigation

NVIDIA cuDNN

GPU-accelerated building blocks for deep learning.

View as Markdown

The NVIDIA CUDA Deep Neural Network library (cuDNN) provides optimized operations for training and inference on NVIDIA GPUs. Use attention, matrix multiplication, convolution, and multi-operation fusion through your framework or the cuDNN Python and C++ APIs.

Integrations

Use cuDNN through the tools in your AI stack, or build directly on its graph APIs. These paths show how selected frameworks and libraries reach cuDNN. Support depends on the operation, selected backend, library versions, and GPU.

EXPLORE AN INTEGRATION

FRAMEWORKS & TRAINING

PyTorch & JAX also connect directly

LLM INFERENCE

cuDNN attention backend

BUILD & EXPERIMENT

AI labs, research & benchmarks

cuDNN

Graph APIs & optimized kernels

AttentionMatmulConvolutionFusion
ALSO IN THE ECOSYSTEM
Find your path to cuDNN

Select a framework or library to see how it connects and where to get started.

Developer guide

Get started

Set up a compatible NVIDIA GPU, CUDA, and cuDNN backend before using the frontend. Check the supported products and installation guide for your environment.

Install the Python frontend:

pip install nvidia-cudnn-frontend

Check that Python can load the cuDNN backend:

import cudnn
print(cudnn.backend_version())

Follow the Python installation guide, then build and execute your first graph.

For most applications, start with the frontend APIs. Use the cuDNN backend API if you need a C-only interface or legacy fixed-function routines that the frontend does not expose.

Operations

cuDNN supports individual operations and flexible fusion patterns. Describe a computation as an operation graph so cuDNN can select an execution plan for your GPU.

cuDNN also supports softmax and pooling.

Contribute and get help

The cuDNN frontend is open source. Explore the code, contribute, or report an issue. See the release notes for updates and support resources for help.