diff options
author | Kostas Georgiadis | 2020-11-29 11:48:24 +0200 |
---|---|---|
committer | Kostas Georgiadis | 2020-11-29 11:50:26 +0200 |
commit | 61bd574eaa61c2c2523210bee7bbe46ba6369afa (patch) | |
tree | 8882656bfe3502dbd2fa4c5f619653ce3e39fc2d /PKGBUILD | |
download | aur-cudnn8-cuda11.0.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..06af8f799ebc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Kostas Georgiadis <kot+aur at cons dot gr> + +pkgname=cudnn8-cuda11.0 +pkgver=8.0.3.33 +_pkgver=8.0.3 +_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') +conflicts=('cudnn') +depends=('cuda=11.0') +# To figure out these URLs, check out the Dockerfiles at +# https://gitlab.com/nvidia/container-images/cuda/-/tree/master/dist for the appropriate cuda version +# or make an NVIDIA Developer account. +# Alternatively, check https://github.com/pytorch/builder/blob/master/common/install_cuda.sh +source=("https://developer.download.nvidia.com/compute/redist/cudnn/v${_pkgver}/cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz" + "NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf") +sha512sums=('3d7e1c40f6424ab6a720a7bfb74c30d1b44b93dcf90fbe7051679172939664b84f7fcd466bdf66141a897872b03322ab7317b5c6641a4adfd3fe169358df70a7' + '38bbb7eb287914e4d7ba79da20a47222382687832d4ba0290715199a129c08715a23681800cf8d381f40e24202470a7b20505a31c8cea51a78762a740860251b') +noextract=("cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz") + +package() { + mkdir -p "${pkgdir}"/usr/share/licenses/ + tar xf cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz --strip-components 1 -C "${pkgdir}/usr" + + mv "${pkgdir}"/usr/lib64 "${pkgdir}"/usr/lib + + install -Dm644 \ + "${srcdir}"/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf \ + "${pkgdir}"/usr/share/licenses/${pkgname}/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf + + mv "${pkgdir}"/usr/NVIDIA_SLA_cuDNN_Support.txt "${pkgdir}"/usr/share/licenses/${pkgname}/NVIDIA_SLA_cuDNN_Support.txt +} + +# vim: ts=2 sw=2 ft=sh syn=sh et |