Win10 installs corresponding CUDA and cuDNN according to tensorflow version

Correspondence between tensorflow versions and CUDA version Cudnn

Insert picture description here

Install CUDA

download

Download link:
https://developer.nvidia.com/cuda-downloads
Insert picture description here
There are two installation types, one is local installation, the other is online installation. If the network is not very good, local installation is recommended.

Installation process

①First double-click to run the downloaded exe file, and then select the installation path.
②Choose to agree and continue
Insert picture description here
③Choose simplified installation (provided that you don’t know how to choose)
Insert picture description here
④The installation process, you need to wait a while
Insert picture description here
⑤Choose the next step

⑥Choose whether to create a shortcut, and click Close
Insert picture description here

Configure environment variables

Check if there are two environment variables
Insert picture description here
in the figure below. Add the following path to the path variable (the path is added according to your own installation path)

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin

Verify the installation is successful (win+R, enter cmd, enter the command line)
Insert picture description here

Install cuDNN

download

Download link:
https://developer.nvidia.com/rdp/cudnn-download

说明:
Web page download requires a registered account, if there is no need to register, log
in directly. In the download list, select the file you need

Installation process

Decompress the downloaded compressed package and copy the decompressed file to the corresponding CUDA installation path

cuDNN unzip file CUDA installation path
D:\cudnn-11.2-windows-x64-v8.1.1.33\cuda\bin C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin
D:\cudnn-11.2-windows-x64-v8.1.1.33\cuda\include C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include
D:\cudnn-11.2-windows-x64-v8.1.1.33\cuda\lib\x64 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64

Add environment variables

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64

The installation is complete

Reference link

Win10 installs CUDA10 and cuDNN
https://blog.csdn.net/FriendshipTang/article/details/113573114

Guess you like

Origin blog.csdn.net/qq_43279579/article/details/114638675