summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/cudnn/cudnn-8.2.1.32.ebuild')
-rw-r--r--dev-libs/cudnn/cudnn-8.2.1.32.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-libs/cudnn/cudnn-8.2.1.32.ebuild b/dev-libs/cudnn/cudnn-8.2.1.32.ebuild
new file mode 100644
index 000000000000..0af221aaec39
--- /dev/null
+++ b/dev-libs/cudnn/cudnn-8.2.1.32.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="NVIDIA Accelerated Deep Learning on GPU library"
+HOMEPAGE="https://developer.nvidia.com/cuDNN"
+SRC_URI="
+ cuda11? ( cudnn-11.3-linux-x64-v${PV}.tgz )
+ cuda10-2? ( cudnn-10.2-linux-x64-v${PV}.tgz )"
+
+LICENSE="NVIDIA-cuDNN"
+SLOT="0/8"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="cuda10-2 +cuda11"
+REQUIRED_USE="^^ ( cuda10-2 cuda11 )"
+RESTRICT="fetch"
+
+DEPEND="
+ cuda11? ( =dev-util/nvidia-cuda-toolkit-11* )
+ cuda10-2? ( =dev-util/nvidia-cuda-toolkit-10.2* )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+QA_PREBUILT="*"
+
+src_install() {
+ insinto /opt/cuda
+ doins cuda/NVIDIA_SLA_cuDNN_Support.txt
+
+ insinto /opt/cuda/targets/x86_64-linux
+ doins -r cuda/include
+
+ insinto /opt/cuda/targets/x86_64-linux/lib
+ doins -r cuda/lib64/.
+}