forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use nvidia cuda image without cudnn for cudnn 8 and up
Use nvidia cuda image without cudnn for cudnn 8 and up. We want to decouple the CUDA and cudnn versions so that we can evolve these version separately. We want to use cudnn 8.3.2 for following CUDA versions 11.3, 11.5 and 11.6. We are using Official Nvidia Cuda ubuntu image. And installing cudnn 8.3.2 on top of it. Pull Request resolved: pytorch#74545 Approved by: https://github.com/malfet
- Loading branch information
1 parent
66e07f2
commit ca96d1d
Showing
3 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
if [[ ${CUDNN_VERSION} == 8 ]]; then | ||
# cuDNN license: https://developer.nvidia.com/cudnn/license_agreement | ||
mkdir tmp_cudnn && cd tmp_cudnn | ||
CUDNN_NAME="cudnn-linux-x86_64-8.3.2.44_cuda11.5-archive" | ||
curl -OLs https://developer.download.nvidia.com/compute/redist/cudnn/v8.3.2/local_installers/11.5/${CUDNN_NAME}.tar.xz | ||
tar xf ${CUDNN_NAME}.tar.xz | ||
cp -a ${CUDNN_NAME}/include/* /usr/include/ | ||
cp -a ${CUDNN_NAME}/include/* /usr/local/cuda/include/ | ||
cp -a ${CUDNN_NAME}/include/* /usr/include/x86_64-linux-gnu/ | ||
|
||
cp -a ${CUDNN_NAME}/lib/* /usr/local/cuda/lib64/ | ||
cp -a ${CUDNN_NAME}/lib/* /usr/lib/x86_64-linux-gnu/ | ||
cd .. | ||
rm -rf tmp_cudnn | ||
ldconfig | ||
fi |
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