Windows 10 安装 NVIDIA cuDNN v7.6.0 for CUDA 10.1
NVIDIA 引领人工智能计算 - NVIDIA
https://www.nvidia.cn/
NVIDIA 开发者 - NVIDIA DEVELOPER
https://developer.nvidia.com/
NVIDIA cuDNN
https://developer.nvidia.com/cudnn
cuDNN Archive
https://developer.nvidia.com/rdp/cudnn-archive
DEEP LEARNING SDK DOCUMENTATION - cuDNN Archives
https://docs.nvidia.com/deeplearning/sdk/cudnn-archived/index.html
NVIDIA Deep Learning SDK
https://docs.nvidia.com/deeplearning/sdk/index.html
cuDNN Release 7.6.0 Documentation - cuDNN Installation Guide
https://docs.nvidia.com/deeplearning/sdk/cudnn-archived/cudnn_760/cudnn-install/index.html
1. Download cuDNN v7.6.0 (May 20, 2019), for CUDA 10.1
The NVIDIA CUDA® Deep Neural Network library (cuDNN) is a GPU-accelerated library of primitives for deep neural networks.
Library for Windows, Mac, Linux, Ubuntu and RedHat/Centos (x86_64 architecture) cuDNN Library for Windows 10
primitive ['prɪmɪtɪv]:adj. 原始的,远古的,简单的,粗糙的 n. 原始人
使用 cudnn-10.1-windows10-x64-v7.6.0.64.zip
安装。
2. cuDNN Installation Guide - Overview
The NVIDIA CUDA Deep Neural Network library (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, pooling, normalization, and activation layers. cuDNN is part of the NVIDIA Deep Learning SDK.
NVIDIA CUDA Deep Neural Network library (cuDNN) 是 GPU 加速的用于深度神经网络的原语库。cuDNN 为标准例程提供了高度优化的实现,such as forward and backward convolution, pooling, normalization, and activation layers。cuDNN 是 NVIDIA Deep Learning SDK 的一部分。
Deep learning researchers and framework developers worldwide rely on cuDNN for high-performance GPU acceleration. It allows them to focus on training neural networks and developing software applications rather than spending time on low-level GPU performance tuning. cuDNN accelerates widely used deep learning frameworks, including Caffe, Caffe2, TensorFlow, Theano, Torch, PyTorch, MXNet, and Microsoft Cognitive Toolkit. cuDNN is freely available to members of the NVIDIA Developer Program.
全球的深度学习研究人员和框架开发人员都依赖 cuDNN 来实现高性能 GPU 加速。它使他们可以专注于训练神经网络和开发软件应用程序,而不必花时间在底层 GPU 性能调整上。cuDNN 加速了广泛使用的深度学习框架,including Caffe, Caffe2, TensorFlow, Theano, Torch, PyTorch, MXNet, and Microsoft Cognitive Toolkit。cuDNN is freely available to members of the NVIDIA Developer Program.
3. Downloading cuDNN
4. Installing cuDNN on Windows
4.1. Prerequisites
-
NVIDIA GPU
https://developer.nvidia.com/cuda-gpus
-
Supported NVIDIA hardware, CUDA, and CUDA driver versions for cuDNN v7.5.1 - v7.6.2
https://docs.nvidia.com/deeplearning/sdk/cudnn-support-matrix/index.html
-
One of the following supported CUDA versions and NVIDIA graphics driver:
NVIDIA graphics driver R418 or newer for CUDA 10.1
NVIDIA graphics driver R410 or newer for CUDA 10.0
NVIDIA graphics driver R396 or newer for CUDA 9.2
NVIDIA graphics driver R384 or newer for CUDA 9
NVIDIA graphics driver R377 or newer for CUDA 8
4.1.1. Installing NVIDIA Graphics Drivers
4.1.2. Installing CUDA
4.2. Installing cuDNN on Windows
- cudnn-10.1-windows10-x64-v7.6.0.64.zip -> 解压到当前文件夹
-
Your CUDA directory path is referred to as
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
-
Your cuDNN directory path is referred to as
<installpath>
=E:\software
-
E:\software\cuda
-
Navigate to your
<installpath>
directory containing cuDNN. -
Unzip the cuDNN package.
cudnn-10.1-windows10-x64-v7.6.0.64.zip
-
Copy the following files into the CUDA Toolkit directory.
a. Copy<installpath>\cuda\bin\cudnn64_7.dll
toC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin
.
E:\software\cuda\bin\cudnn64_7.dll
->C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin
b. Copy<installpath>\cuda\include\cudnn.h
toC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include
.
E:\software\cuda\include\cudnn.h
->C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include
c. Copy<installpath>\cuda\lib\x64\cudnn.lib
toC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64
.
E:\software\cuda\lib\x64\cudnn.lib
->C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64
-
Set the following environment variables to point to where cuDNN is located. To access the value of the
$(CUDA_PATH)
environment variable, perform the following steps:
a. Open a command prompt from theStart
menu.
b. TypeRun
and hitEnter
.
c. Issue thecontrol sysdm.cpl
command.
d. Select theAdvanced
tab at the top of the window.
e. ClickEnvironment Variables
at the bottom of the window.
f. Ensure the following values are set:
Variable Name: CUDA_PATH
Variable Value: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
- Include
cudnn.lib
in your Visual Studio project.
a. Open the Visual Studio project and right-click on the project name.
b. ClickLinker > Input > Additional Dependencies
.
c. Addcudnn.lib
and clickOK
.
cuDNN v7 can coexist with previous versions of cuDNN, such as v5 or v6.
References
cuDNN Support Matrix - CUDA And NVIDIA Hardware For cuDNN
https://docs.nvidia.com/deeplearning/sdk/cudnn-support-matrix/index.html
CUDA Installation Guide for Microsoft Windows
https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html