Installing the cuDNN Python Frontend
You can install the cuDNN Python frontend from a wheel or build it from source. Both options require a compatible cuDNN backend.
Installing the Python Frontend from pip Wheel
Run pip with the Python interpreter you want to use:
Installing the Python Frontend from Source
Building the Python bindings requires Python 3.10 or later, a compiler with C++20 support, the CUDA Toolkit, and cuDNN backend development files. Install the development headers for the Python interpreter you use to build, such as python3-dev for the system Python on Debian or Ubuntu.
-
If you require a custom installation path for the CUDA Toolkit or cuDNN software, set environment variables as follows:
If these variables are unset, the build uses the standard CUDA Toolkit and cuDNN search paths.
-
Build and install the frontend from the GitHub repository:
Verifying the Python Frontend Installation
Import cudnn and query both versions with the interpreter you used for installation:
To run GPU tests from a source checkout, see Running tests.