Skip to content
Snippets Groups Projects
Commit 77c162e7 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

upgpkg: 8.0.4.30-1

parent 74fabb31
No related branches found
Tags 0.8.1-2
No related merge requests found
...@@ -4,10 +4,11 @@ ...@@ -4,10 +4,11 @@
# Contributor: Yunhui Fu <yhfdev@gmail.com> # Contributor: Yunhui Fu <yhfdev@gmail.com>
pkgname=cudnn pkgname=cudnn
pkgver=8.0.3.33 pkgver=8.0.4.30
_cudaver=11.0 _pkgver=8.0.4
_cudaver=11.1
_majorver=8 _majorver=8
pkgrel=2 pkgrel=1
pkgdesc="NVIDIA CUDA Deep Neural Network library" pkgdesc="NVIDIA CUDA Deep Neural Network library"
arch=('x86_64') arch=('x86_64')
url="https://developer.nvidia.com/cuDNN" url="https://developer.nvidia.com/cuDNN"
...@@ -16,56 +17,24 @@ depends=('cuda>=11') ...@@ -16,56 +17,24 @@ depends=('cuda>=11')
# To figure out these URLs, check out the Dockerfiles at # To figure out these URLs, check out the Dockerfiles at
# https://gitlab.com/nvidia/container-images/cuda/-/tree/master/dist for the appropriate cuda version # https://gitlab.com/nvidia/container-images/cuda/-/tree/master/dist for the appropriate cuda version
# or make an NVIDIA Developer account. # or make an NVIDIA Developer account.
source=("https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/libcudnn${_majorver}-dev_${pkgver}-1+cuda${_cudaver}_amd64.deb" # Alternatively, check https://github.com/pytorch/builder/blob/master/common/install_cuda.sh
"https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/libcudnn${_majorver}_${pkgver}-1+cuda${_cudaver}_amd64.deb" source=("https://developer.download.nvidia.com/compute/redist/cudnn/v${_pkgver}/cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz"
"NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf") "NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf")
sha512sums=('e7a19fe3495d1bbcbaef858b426d6cf02e5ad8b87515a6270130d94457611099ced174b4d52fd06723f85e08172637aa942bf31e863fdf3ad46a3e0d85271598' sha512sums=('57615fef93f0897ede6d65da255a61f2e84d25ef46cd85c5f65558ba4bd8fee6f1ff06a4b0ecf20d0ff92bfd019a3068c719cdcd0de0eb2d16b18caee4aae610'
'd6b3a82e2f64be665148a4fbcc5e2a48a75960eac403baa91ee9d9a54bf91083aac7d137ebfc8fa4c476d4c43712d68545ded2e142441000230df57ac1327211'
'38bbb7eb287914e4d7ba79da20a47222382687832d4ba0290715199a129c08715a23681800cf8d381f40e24202470a7b20505a31c8cea51a78762a740860251b') '38bbb7eb287914e4d7ba79da20a47222382687832d4ba0290715199a129c08715a23681800cf8d381f40e24202470a7b20505a31c8cea51a78762a740860251b')
noextract=("libcudnn7-dev_${pkgver}-1+cuda${_cudaver}_amd64.deb" noextract=("cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz")
"libcudnn7_${pkgver}-1+cuda${_cudaver}_amd64.deb")
package() { package() {
cd "${srcdir}" mkdir -p "${pkgdir}"/usr/share/licenses/
mkdir -p "${pkgdir}"/usr/{lib,include} tar xf cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz --strip-components 1 -C "${pkgdir}/usr"
mkdir libcudnn${_majorver}-dev mv "${pkgdir}"/usr/lib64 "${pkgdir}"/usr/lib
cd libcudnn${_majorver}-dev
ar xv "${srcdir}"/libcudnn${_majorver}-dev_${pkgver}-1+cuda${_cudaver}_amd64.deb
tar xf data.tar.xz
cp -a usr/include/x86_64-linux-gnu/* "${pkgdir}"/usr/include/
cp -a usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib/
# come back to srcdir
cd "${srcdir}"
mkdir libcudnn${_majorver}
cd libcudnn${_majorver}
ar xv "${srcdir}"/libcudnn${_majorver}_${pkgver}-1+cuda${_cudaver}_amd64.deb
tar xf data.tar.xz
cp -a usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib/
# come back to srcdir
cd "${srcdir}"
# Get rid of some Ubuntu-isms but at the same time still allow for them to
# work because nobody is ever quite sure what the right names are.
ln -s cudnn_v${_majorver}.h "${pkgdir}"/usr/include/cudnn.h
ln -s cudnn_adv_infer_v${_majorver}.h "${pkgdir}"/usr/include/cudnn_adv_infer.h
ln -s cudnn_adv_train_v${_majorver}.h "${pkgdir}"/usr/include/cudnn_adv_train.h
ln -s cudnn_backend_v${_majorver}.h "${pkgdir}"/usr/include/cudnn_backend.h
ln -s cudnn_cnn_infer_v${_majorver}.h "${pkgdir}"/usr/include/cudnn_cnn_infer.h
ln -s cudnn_cnn_train_v${_majorver}.h "${pkgdir}"/usr/include/cudnn_cnn_train.h
ln -s cudnn_ops_infer_v${_majorver}.h "${pkgdir}"/usr/include/cudnn_ops_infer.h
ln -s cudnn_ops_train_v${_majorver}.h "${pkgdir}"/usr/include/cudnn_ops_train.h
ln -s cudnn_version_v${_majorver}.h "${pkgdir}"/usr/include/cudnn_version.h
ln -s libcudnn.so.${_majorver} "${pkgdir}"/usr/lib/libcudnn.so
ln -s libcudnn_static_v${_majorver}.a "${pkgdir}"/usr/lib/libcudnn_static.a
install -Dm644 \ install -Dm644 \
"${srcdir}"/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf \ "${srcdir}"/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf \
"${pkgdir}"/usr/share/licenses/${pkgname}/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf "${pkgdir}"/usr/share/licenses/${pkgname}/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf
mv "${pkgdir}"/usr/NVIDIA_SLA_cuDNN_Support.txt "${pkgdir}"/usr/share/licenses/${pkgname}/NVIDIA_SLA_cuDNN_Support.txt
} }
# vim: ft=sh syn=sh et # vim: ts=2 sw=2 ft=sh syn=sh et
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment