Skip to content
Snippets Groups Projects
Commit 72772222 authored by Konstantin Gizdov's avatar Konstantin Gizdov
Browse files

upgpkg: 8.0.0.180-1

parent 004ab2be
No related branches found
Tags 8.3.0.98-1
No related merge requests found
......@@ -4,21 +4,23 @@
# Contributor: Yunhui Fu <yhfdev@gmail.com>
pkgname=cudnn
pkgver=7.6.5.32
_cudaver=10.2
pkgrel=4
pkgver=8.0.0.180
_cudaver=11.0
_majorver=8
pkgrel=1
pkgdesc="NVIDIA CUDA Deep Neural Network library"
arch=('x86_64')
url="https://developer.nvidia.com/cuDNN"
license=('custom')
depends=('cuda>=10')
depends=('cuda>=11')
# To figure out these URLs, check out the Dockerfiles at
# https://gitlab.com/nvidia/cuda/tree/centos7 for the appropriate cuda version.
source=("https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/libcudnn7-dev_${pkgver}-1+cuda${_cudaver}_amd64.deb"
"https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/libcudnn7_${pkgver}-1+cuda${_cudaver}_amd64.deb"
# https://gitlab.com/nvidia/cuda/tree/centos7 for the appropriate cuda version
# 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"
"https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/libcudnn${_majorver}_${pkgver}-1+cuda${_cudaver}_amd64.deb"
"NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf")
sha512sums=('948b1bd93df47e7309450cee91673a7abc48aa009e6a75029880fd2601f9b9a089e8122e87654a1fd6d3dfe93997636089fe3295fa9a6f5b10bb78897e9de822'
'9463cf2618c2ba017796e7292bd30afd7c6352b0e1b3d9f4f8c44c4f9102895c7a0a592007c3640fd26896ecac595accbb0bfbc9b2b97f876cadc1ede6a86e6b'
sha512sums=('62f456ac988f50d8369863884fd767d1b79867d2bb1a9f644a4a19bcb76a2280b809d3d54aec0118f4bf1e4380d7b31c0298a8e598054d6938e22d6d977f385f'
'30344d77e624bf927bd07973bcd240cf523477ad30b7139d8a84a8d415e1d2475885013977c5f9dfb840504a7bdaa19da9890061fadbd0c73b1b58b387169d03'
'38bbb7eb287914e4d7ba79da20a47222382687832d4ba0290715199a129c08715a23681800cf8d381f40e24202470a7b20505a31c8cea51a78762a740860251b')
noextract=("libcudnn7-dev_${pkgver}-1+cuda${_cudaver}_amd64.deb"
"libcudnn7_${pkgver}-1+cuda${_cudaver}_amd64.deb")
......@@ -26,24 +28,24 @@ noextract=("libcudnn7-dev_${pkgver}-1+cuda${_cudaver}_amd64.deb"
package() {
mkdir -p "${pkgdir}"/usr/{lib,include}
mkdir libcudnn7-dev
cd libcudnn7-dev
ar xv "${srcdir}"/libcudnn7-dev_${pkgver}-1+cuda${_cudaver}_amd64.deb
mkdir libcudnn${_majorver}-dev
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/
mkdir libcudnn7
cd libcudnn7
ar xv "${srcdir}"/libcudnn7_${pkgver}-1+cuda${_cudaver}_amd64.deb
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/
# 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_v7.h "${pkgdir}"/usr/include/cudnn.h
ln -s libcudnn.so.7 "${pkgdir}"/usr/lib/libcudnn.so
ln -s libcudnn_static_v7.a "${pkgdir}"/usr/lib/libcudnn_static.a
ln -s cudnn_v${_majorver}.h "${pkgdir}"/usr/include/cudnn.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 \
"${srcdir}"/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf \
......
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