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

Konstantin Gizdov kgizdov at archlinux.org
Mon Jun 22 08:25:10 UTC 2020


    Date: Monday, June 22, 2020 @ 08:25:09
  Author: kgizdov
Revision: 650338

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

----------+
 PKGBUILD |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

Copied: cudnn/repos/community-testing-x86_64/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf (from rev 650337, cudnn/trunk/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf)
===================================================================
(Binary files differ)

Copied: cudnn/repos/community-testing-x86_64/PKGBUILD (from rev 650337, cudnn/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-06-22 08:25:09 UTC (rev 650338)
@@ -0,0 +1,55 @@
+# 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=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>=11')
+# To figure out these URLs, check out the Dockerfiles at
+# 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=('62f456ac988f50d8369863884fd767d1b79867d2bb1a9f644a4a19bcb76a2280b809d3d54aec0118f4bf1e4380d7b31c0298a8e598054d6938e22d6d977f385f'
+            '30344d77e624bf927bd07973bcd240cf523477ad30b7139d8a84a8d415e1d2475885013977c5f9dfb840504a7bdaa19da9890061fadbd0c73b1b58b387169d03'
+            '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 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 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_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 \
+      "${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