This covers the installation of CUDA, cuDNN on Windows 10. This article below assumes that you have a CUDA-compatible GPU already installed on your PC.
Install CUDA and cuDNN with conda in Anaconda prompt.
Here, it is assumed you have already installed Anaconda. If you do not have Anaconda installed, follow How to Install Anaconda
Recommend to use conda virtual environment for specific CUDA version contained in the env.
Installing CUDA =10.2
First, Run Anaconda Prompt(admistration)
(Option1: install in base)
If you want to install the same CUDA version for all environment, install in (base)
conda install -c anaconda cudatoolkit==10.2.89
(Option2: install in Specific Environment)
It is recommended to install specific CUDA version in the selected Python environment.
[$ENV_NAME] is your environment name. e.g. conda activate py37
Installing cuDNN
Conda will find the compatible cuDNN for the installed version of CUDA
The available cuDNN version could be a low version (e.g. cuDNN 7.6.5). If you want to install a higher version, then follow Method 2: Using NVDIA downloader.
image
Method 2: Installation using NVIDIA downloader
Step 1: Check the software you need to install
Assuming that Windows is already installed on your PC, the additional bits of software you will install as part of these steps are:
Microsoft Visual Studio Community(v2017 or higher )
NVIDIA CUDA Toolkit
NVIDIA cuDNN
Step 2: Install Visual Studio Community
Visual Studio is a Prerequisite for CUDA Toolkit
Visual Studio Community is required for the installation of Nvidia CUDA Toolkit. If you attempt to download and install CUDA Toolkit for Windows without having first installed Visual Studio, you get a message for installation.