The NVIDIA CUDA® Deep Neural Network (cuDNN) is a GPU-accelerated library of primitives for deep neural networks. cuDNN provides highly tuned implementations for standard routines such as forward and backward convolution, attention, mammal, pooling, and normalization.
(1) Go to NVIDIA drivers download page:https://www.nvidia.com/download/index.aspx?lang=en-us
(2) Select the GPU and OS version from the drop-down menus.
(3) Download and install the NVIDIA driver as indicated on that web page.
(4) Restart your system to ensure the graphics driver takes effect.
(1) Install Visual Studio and check to install Python Development: Download Visual Studio Tools - Install Free for Windows, Mac, Linux (microsoft.com)
(2) Choose the right version. run command “nvidia-smi” to check your CUDA version
(3) Go to CUDA Toolkit: https://developer.nvidia.com/cuda-downloads
(4) (4)Install CUDA Toolkit step by step
(5) Check install successful,Run command “nvcc –V” to check
(1) Go to cuDNN: https://developer.nvidia.com/rdp/cudnn-archive
(2) Unzip the cuDNN package.
(3) Copy the following files from the unzipped package into the NVIDIA cuDNN directory.
Copy to .bin\cudnn*.dll to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\bin
Copy to .include\cudnn*.h to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include
Copy to .lib\x64\cudnn*.lib to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\lib
(4) Set the following environment variable to point to where cuDNN is located. To access the value of the environment variable, perform the following steps:
a. Open a command prompt from the Start menu, Type and hit Enter.Run.
b. Issue the command.control sysdm.cpl.
c. Select the Advanced tab at the top of the window.
d. Click Environment Variables at the bottom of the window.
e. Add the NVIDIA cuDNN directory path to the PATH variable:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\bin C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\lib
Verify that cuDNN is installed successfully by checking for the word “pass”. If it appears, the installation was successful.