Date: Monday, August 26, 2019 @ 15:11:04 Author: kgizdov Revision: 502130
archrelease: copy trunk to community-testing-x86_64 Added: cudnn/repos/community-testing-x86_64/ cudnn/repos/community-testing-x86_64/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf (from rev 502129, cudnn/trunk/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf) cudnn/repos/community-testing-x86_64/PKGBUILD (from rev 502129, cudnn/trunk/PKGBUILD) ----------+ PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) Copied: cudnn/repos/community-testing-x86_64/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf (from rev 502129, cudnn/trunk/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf) =================================================================== (Binary files differ) Copied: cudnn/repos/community-testing-x86_64/PKGBUILD (from rev 502129, cudnn/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2019-08-26 15:11:04 UTC (rev 502130) @@ -0,0 +1,53 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Adria Arrufat <adria.arrufat AT protonmail+aur DOT com> +# Contributor: Sami B. <spiderma...@free.fr> +# Contributor: Yunhui Fu <yhf...@gmail.com> + +pkgname=cudnn +pkgver=7.6.3.30 +_cudaver=10.1 +pkgrel=1 +pkgdesc="NVIDIA CUDA Deep Neural Network library" +arch=('x86_64') +url="https://developer.nvidia.com/cuDNN" +license=('custom') +depends=('cuda>=10') +# 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" + "NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf") +sha512sums=('6e19c9b31ad72381341318a7d14f7fcdf8f6f27def609657ab32b4b1472e809abd342ce3edfbeed49eea4dc6bd03106bbb542ff9ea86c2cc729ee11860f9028a' + '6929925c7858c1928b97c783a71c56170111a9af44626d12f94602b5ceb4c91f9c765cb70ddb8ced3e703c186679fe7f95e2d804ffd9835c27eba201f1ad6da3' + '38bbb7eb287914e4d7ba79da20a47222382687832d4ba0290715199a129c08715a23681800cf8d381f40e24202470a7b20505a31c8cea51a78762a740860251b') +noextract=("libcudnn7-dev_${pkgver}-1+cuda${_cudaver}_amd64.deb" + "libcudnn7_${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 + 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 + 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 + + install -Dm644 \ + "${srcdir}"/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf \ + "${pkgdir}"/usr/share/licenses/${pkgname}/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf +} + +# vim: ft=sh syn=sh et