[arch-commits] Commit in cudnn/repos (3 files)

Konstantin Gizdov kgizdov at archlinux.org
Tue Oct 1 08:03:58 UTC 2019


    Date: Tuesday, October 1, 2019 @ 08:03:57
  Author: kgizdov
Revision: 512314

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 512313, cudnn/trunk/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf)
  cudnn/repos/community-testing-x86_64/PKGBUILD
    (from rev 512313, 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 512313, cudnn/trunk/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf)
===================================================================
(Binary files differ)

Copied: cudnn/repos/community-testing-x86_64/PKGBUILD (from rev 512313, cudnn/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-10-01 08:03:57 UTC (rev 512314)
@@ -0,0 +1,53 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Adria Arrufat <adria.arrufat AT protonmail+aur DOT com>
+# Contributor: Sami B. <spidermario at free.fr>
+# Contributor: Yunhui Fu <yhfdev at gmail.com>
+
+pkgname=cudnn
+pkgver=7.6.4.38
+_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=('0b2fe5515dae405f2df57257439194d21c5e377437aa56b2f17e248b517d32a5813730861f112080138dbb700238d015961023fb0472328dd782daf49eafd310'
+            'd5dd7b8982efaf97a2fa710a4e715c8307f1a7e284eb0f0152b2b8d92fcaafe08080074f64aec2b868cf7dddf907a1b079cb7fb6f53719389259bfe8158053ed'
+            '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



More information about the arch-commits mailing list