

Since cuDNN is split into several libraries, dependencies between them need to be taken into account.įor example, when statically linking libcudnn_cnn_infer_static.a into an application, libcudnn_ops_infer_static.a is also needed, in this order (a dependent library followed by its dependency). Static cuDNN libs for Windows are not supported. Linux: Add -lcublas_static -lcublasLt_static -lz -lculibos -lnvrtc_static -lnvrtc-builtins_static -lnvptxcompiler_static -lcudart_static to the linker command. Linker dependencies for the static cuDNN libs Windows: Add cublas.lib cublasLt.lib zlibwapi.lib to the linker command. Linux: Add -lcublas -lcublasLt -lz to the linker command. One way to achieve this is by explicitly specifying them on the linker command.įor linker dependencies for the dynamic cuDNN libs Users with a 32-bit machine should download the 32-bit ZLIB DLL.īecause cuDNN uses symbols defined in external libraries, you need to ensure that the linker can locate these libraries while building a cuDNN dependent program.

Download and install the NVIDIA driver as indicated on that web page.Select the GPU and OS version from the drop-down menus.Install up-to-date NVIDIA graphics drivers on your Windows system. Navigate to your directory containing the cuDNN tar file.įor the latest compatibility software versions of the OS, CUDA, the CUDA driver, and the NVIDIA hardware, refer to the NVIDIA cuDNN Support Matrix.your cuDNN download path is referred to as īefore issuing the following commands, you must replace X.Y and v8.x.x.x with your specific CUDA and cuDNN versions and package date.


Choose the installation method that meets your environment needs. The following steps describe how to build a cuDNN dependent program.
