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

Konstantin Gizdov kgizdov at archlinux.org
Wed Jun 26 10:05:55 UTC 2019


    Date: Wednesday, June 26, 2019 @ 10:05:54
  Author: kgizdov
Revision: 484361

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

Copied: cudnn/repos/community-testing-x86_64/PKGBUILD (from rev 484360, cudnn/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-06-26 10:05:54 UTC (rev 484361)
@@ -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.1.34
+_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=('836cb5e493312e6fa33335349db2ae66658dfc38fa3ee5bd328a20cbe18e9b8c6c60e81d6fe6a284669fddfaef4903eddb1c31126c5f04d0cdf73cb8c1549fd4'
+            '0767256aa9bda01718b021cc472d4945bb174aec4e37de9090a2f7cb64e26152b998b1ca6a9eaf2c5b019890cbaf278dbdee9eba9cae6009662e9b9b3904b54b'
+            '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