Created
June 24, 2019 13:43
-
-
Save eriktonon/d4429c62d6af38ce72b909707e810e26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64 | |
install cudnn | |
In order to download cuDNN, ensure you are registered for the NVIDIA Developer Program. | |
Go to: NVIDIA cuDNN home page. | |
Click Download. | |
Complete the short survey and click Submit. | |
Accept the Terms and Conditions. A list of available download versions of cuDNN displays. | |
Select the cuDNN version to want to install. A list of available resources displays. | |
Extract the cuDNN archive to a directory of your choice. | |
4.3. Installing cuDNN on Windows | |
The following steps describe how to build a cuDNN dependent program. In the following sections the CUDA v9.0 is used as example: | |
Your CUDA directory path is referred to as C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0 | |
Your cuDNN directory path is referred to as <installpath> | |
Navigate to your <installpath> directory containing cuDNN. | |
Unzip the cuDNN package. | |
cudnn-9.0-windows7-x64-v7.zip | |
or | |
cudnn-9.0-windows10-x64-v7.zip | |
Copy the following files into the CUDA Toolkit directory. | |
Copy <installpath>\cuda\bin\cudnn64_7.dll to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin. | |
Copy <installpath>\cuda\ include\cudnn.h to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include. | |
Copy <installpath>\cuda\lib\x64\cudnn.lib to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\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: | |
Open a command prompt from the Start menu. | |
Type Run and hit Enter. | |
Issue the control sysdm.cpl command. | |
Select the Advanced tab at the top of the window. | |
Click Environment Variables at the bottom of the window. | |
Ensure the following values are set: | |
Variable Name: CUDA_PATH | |
Variable Value: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0 | |
Include cudnn.lib in your Visual Studio project. | |
Open the Visual Studio project and right-click on the project name. | |
Click Linker > Input > Additional Dependencies. | |
Add cudnn.lib and click OK. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment