Registry / ai-ml / nvidia-cudnn-cu11

nvidia-cudnn-cu11

JSON →
library9.10.2.21pypypi✓ verified 24d ago

nvidia-cudnn-cu11 is a PyPI package that provides the NVIDIA CUDA Deep Neural Network (cuDNN) runtime libraries, specifically built for CUDA 11.x environments. cuDNN is a GPU-accelerated library of primitives designed to optimize deep neural network operations like convolutions, matrix multiplications, and pooling, enabling high-performance deep learning. The library is actively maintained with frequent updates, often multiple releases per month, to support the latest cuDNN versions and incorporate bug fixes.

pip install --upgrade pip wheel pip install nvidia-cudnn-cu11
INSTALL
IMPORT
SIG · NVIDIA-CUDNN-CU11
N
nvidia-cudnn-cu11
ai-mlpythonv9.10.2.21
Install
18.5s avg
Import
Disk
1331MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v9.10.2.21 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
dependency_conflict
glibc
py 3.103.910 runs
installs and imports cleanly · install 18.5s · import 0.000s · 1331.2MB
1331MB installed
● package 1331MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Not Applicable for direct import
# nvidia-cudnn-cu11 primarily provides shared libraries for deep learning frameworks.
This package delivers low-level GPU-accelerated libraries. High-level Python interaction with cuDNN primitives is typically handled by deep learning frameworks (e.g., TensorFlow, PyTorch) or via the 'nvidia-cudnn-frontend' package, not direct imports from 'nvidia-cudnn-cu11'.
cudnn.Graph
import torch import nvidia.cudnn.frontend as cudnn # Example usage with the frontend API (requires 'pip install nvidia-cudnn-frontend') graph = cudnn.Graph() # ... define graph operations ...
For direct programmatic interaction with cuDNN's Graph API from Python, the 'nvidia-cudnn-frontend' package is typically used, which provides a higher-level API. This is separate from the 'nvidia-cudnn-cu11' package that provides the backend runtime libraries.

The `nvidia-cudnn-cu11` package provides runtime libraries. Its functionality is primarily exposed through deep learning frameworks like PyTorch or TensorFlow, which link against these libraries. The quickstart demonstrates how to verify that a framework is correctly utilizing CUDA and, by extension, cuDNN, after installing `nvidia-cudnn-cu11`.

import os # This package primarily installs runtime libraries for deep learning frameworks. # Verification usually involves running a framework that utilizes cuDNN. # For example, with PyTorch: try: import torch print(f"PyTorch version: {torch.__version__}") if torch.cuda.is_available(): print(f"CUDA is available: {torch.cuda.is_available()}") print(f"CUDA device name: {torch.cuda.get_device_name(0)}") print(f"cuDNN enabled in PyTorch: {torch.backends.cudnn.enabled}") # Attempt a simple operation that would use cuDNN if available x = torch.randn(1, 3, 224, 224, device='cuda') conv = torch.nn.Conv2d(3, 64, 3, device='cuda') _ = conv(x) print("Successfully ran a simple CUDA/cuDNN operation with PyTorch.") else: print("CUDA is not available. cuDNN will not be used.") except ImportError: print("PyTorch not installed. Install it with 'pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118' (adjust CUDA version if needed).") except Exception as e: print(f"An error occurred during PyTorch verification: {e}") # If using TensorFlow, a similar check would apply: try: import tensorflow as tf print(f"TensorFlow version: {tf.__version__}") print(f"TensorFlow built with CUDA: {tf.test.is_built_with_cuda()}") print(f"TensorFlow GPU devices: {tf.config.list_physical_devices('GPU')}") if tf.test.is_built_with_cuda() and tf.config.list_physical_devices('GPU'): print("Successfully detected GPU and CUDA support in TensorFlow.") else: print("TensorFlow not using GPU/CUDA. Check installation.") except ImportError: print("TensorFlow not installed. Install it with 'pip install tensorflow[and-cuda]' (or specific versions).") except Exception as e: print(f"An error occurred during TensorFlow verification: {e}")
Debug
Known issues
breakingCritical version mismatches between NVIDIA drivers, CUDA Toolkit, cuDNN, and deep learning frameworks (TensorFlow, PyTorch) will lead to runtime errors or prevent GPU usage. Always consult the compatibility matrix provided by NVIDIA and your chosen deep learning framework.
fix
Before installation, verify exact compatibility requirements for your GPU driver, CUDA Toolkit, `nvidia-cudnn-cu11` version, and deep learning framework version. Update or downgrade components as necessary to match the recommended matrix. Pay close attention to the CUDA version suffix (e.g., `cu11` for CUDA 11.x).
affects: All versions
gotchaDeep learning frameworks (e.g., PyTorch) sometimes bundle their own cuDNN libraries within their installation. This can lead to conflicts where the framework might use its bundled version instead of the explicitly installed `nvidia-cudnn-cu11` package, even if the latter is newer or preferred.
fix
If experiencing unexpected behavior or if updates to `nvidia-cudnn-cu11` don't seem to take effect, investigate which cuDNN libraries your framework is actually loading (e.g., using `ldd` on Linux for shared libraries). In some advanced cases, you might need to build the framework from source or carefully manage `LD_LIBRARY_PATH` (Linux) or DLL search paths (Windows) to prioritize specific cuDNN installations.
affects: All versions
gotchaImproperly configured system environment variables can prevent deep learning frameworks from locating the necessary cuDNN libraries, even if they are installed correctly.
fix
Ensure that the CUDA Toolkit's `bin` directory and cuDNN library paths are correctly added to your system's `PATH` environment variable (Windows) or `LD_LIBRARY_PATH` (Linux). For example, on Linux, this might involve `export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH`.
affects: All versions
gotchaOlder versions of `nvidia-cudnn-cu11` or issues with package managers other than `pip` might incorrectly report that the package is a placeholder and requires installation from NVIDIA's own PyPI index (`pypi.ngc.nvidia.com`).
fix
For `pip` users, ensure `pip` and `wheel` are up to date (`pip install --upgrade pip wheel`). Modern `pip` should automatically find the `nvidia-cudnn-cu11` package directly from PyPI. If using other package managers (like `poetry`), ensure they are configured to include `https://pypi.ngc.nvidia.com` as a source if issues persist, although this is less common with recent releases.
affects: < 9.x.x.x (and possibly specific older versions)
Upgrade
Version history
9.10.2.21latest on PyPI · released Jun 6, 2025
Audit
Dependencies
nvidia-cublas-cu11requiredRequired for underlying CUDA BLAS (Basic Linear Algebra Subprograms) operations.
NVIDIA CUDA Toolkit (system-level)requiredcuDNN requires a compatible CUDA Toolkit installation on the system. This package provides the Python-installable cuDNN libraries.
NVIDIA GPU Driver (system-level)requiredA compatible and up-to-date NVIDIA GPU driver is essential for CUDA and cuDNN functionality.
Agent activity
5 hits · last 30 days
node
4
Resources
nvidia-cudnn-cu11 — pip install nvidia-cudnn-cu11 · libregistry