Skip to content

Instantly share code, notes, and snippets.

@Gonzih
Last active March 17, 2019 20:07
Show Gist options
  • Save Gonzih/83aec42374691ab49412834219c88f69 to your computer and use it in GitHub Desktop.
Save Gonzih/83aec42374691ab49412834219c88f69 to your computer and use it in GitHub Desktop.
CUDNN9 aur PKGBUILD
pkgname=cudnn9
pkgver=7
pkgrel=4
pkgdesc="NVIDIA CUDA Deep Neural Network library (version 9)"
arch=('x86_64')
url="https://developer.nvidia.com/cuDNN"
license=('proprietary')
depends=('cuda-sdk')
source=("http://files.fast.ai/files/cudnn-9.1-linux-x64-v7.tgz")
sha512sums=('7eadb64a3d5e49aec2761e6f7dc0295c1d356910b114eed450c47081fc81b6e3b7748f3a4153f6a9d957691e3689cd52823bfa12816b1950dfc8794d6f332749')
package() {
mkdir -p "${pkgdir}/opt"
mkdir -p "${pkgdir}/etc"
cp -r cuda "${pkgdir}/opt/cudnn9"
install -d ${pkgdir}/etc/ld.so.conf.d
echo "/opt/cudnn9/lib64/" > ${pkgdir}/etc/ld.so.conf.d/cudnn9.conf
}
# vim: ft=sh syn=sh et
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment