Windows 10 安装 NVIDIA cuDNN v7.6.0 for CUDA 10.1

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

4.1.1. Installing NVIDIA Graphics Drivers
4.1.2. Installing CUDA

4.2. Installing cuDNN on Windows

  1. 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
    在这里插入图片描述

  1. Navigate to your <installpath> directory containing cuDNN.

  2. Unzip the cuDNN package.
    cudnn-10.1-windows10-x64-v7.6.0.64.zip

  3. Copy the following files into the CUDA Toolkit directory.
    a. Copy <installpath>\cuda\bin\cudnn64_7.dll to C:\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 to C:\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 to C:\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

  4. 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 the Start menu.
    b. Type Run and hit Enter.
    c. Issue the control sysdm.cpl command.
    d. Select the Advanced tab at the top of the window.
    e. Click Environment 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

在这里插入图片描述

在这里插入图片描述

  1. Include cudnn.lib in your Visual Studio project.
    a. Open the Visual Studio project and right-click on the project name.
    b. Click Linker > Input > Additional Dependencies.
    c. Add cudnn.lib and click OK.

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Yongqiang Cheng

梦想不是浮躁,而是沉淀和积累。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值