diff --git a/PKGBUILD b/PKGBUILD index 6085991427f9aeaba0c9064a2e2a0bf82d3921f3..b02703ddc66a210b0f66e1afc923b57e0824d37b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,8 +4,8 @@ # Contributor: Yunhui Fu <yhfdev@gmail.com> pkgname=cudnn -pkgver=8.2.2.26 -_pkgver=8.2.2 +pkgver=8.2.4.15 +_pkgver=8.2.4 _cudaver=11.4 _majorver=8 pkgrel=1 @@ -13,15 +13,16 @@ pkgdesc="NVIDIA CUDA Deep Neural Network library" arch=('x86_64') url="https://developer.nvidia.com/cuDNN" license=('custom') -depends=('cuda>=11') +depends=('cuda>='"${_cudaver}") options=(!strip staticlibs) # 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 +# or https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ 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=('e74e4f9bb54f778a2e764d737967b0af90a0f68e9d2eb8216b45a7e44c6fb5865e6ee7f7cc89d606b7e5a879e7cad405e88bd867721bfcb43681aca8188b63ea' +sha512sums=('3a9438952be0396f68703dc5ccb77b38445589e4f2c2ce3fb628533d0a78e425958f7825558086873f93ee8dcdcb31329e2362f6427aec5ec797e78e280f470b' '38bbb7eb287914e4d7ba79da20a47222382687832d4ba0290715199a129c08715a23681800cf8d381f40e24202470a7b20505a31c8cea51a78762a740860251b') noextract=("cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz") @@ -30,7 +31,10 @@ package() { tar xf cudnn-${_cudaver}-linux-x64-v${pkgver}.tgz --strip-components 1 -C "${pkgdir}/usr" mv "${pkgdir}"/usr/lib64 "${pkgdir}"/usr/lib - chmod 644 "${pkgdir}"/usr/lib/libcudnn_static_v8.a + find "${pkgdir}/usr/lib" -type f \( -iname "*.a" -or -iname "*.a.*" \) -print0 | while read -rd $'\0' _so_file; do + # make sure static libraries have proper permissions + chmod 644 "${_so_file}" + done install -Dm644 \ "${srcdir}"/NVIDIA_SLA+cuDNN_Supp_Feb2017_release.pdf \