diff options
author | Miezhiko <Miezhiko@gmail.com> | 2021-12-27 14:26:02 +0400 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-12-27 12:02:35 +0100 |
commit | c77caf8c67795cb193f5653e42a0df92aa6c4817 (patch) | |
tree | 578c40e023a5070b16ee821b80a5ebf037f2f31d /dev-libs | |
parent | sci-libs/pytorch: fixes for cuda USE flag, nccl update (diff) | |
download | sci-c77caf8c67795cb193f5653e42a0df92aa6c4817.tar.gz sci-c77caf8c67795cb193f5653e42a0df92aa6c4817.tar.bz2 sci-c77caf8c67795cb193f5653e42a0df92aa6c4817.zip |
dev-libs/cudnn: 8.3.1.22 TODO: cuda 10.2 support maybe
Signed-off-by: Miezhiko <Miezhiko@gmail.com>
Closes: https://github.com/gentoo/sci/pull/1131
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/cudnn/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/cudnn/cudnn-8.3.1.22.ebuild | 31 | ||||
-rw-r--r-- | dev-libs/cudnn/metadata.xml | 11 |
3 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/cudnn/Manifest b/dev-libs/cudnn/Manifest new file mode 100644 index 000000000..358563562 --- /dev/null +++ b/dev-libs/cudnn/Manifest @@ -0,0 +1 @@ +DIST cudnn-linux-x86_64-8.3.1.22_cuda11.5-archive.tar.xz 856769204 BLAKE2B 375021592470b1f17d7a69701f1ac3289ceb8ddbbdacf577fa51abfdad263102d3c6cedb24ac829c49e033300532e77b6064835a8ae1e05377e375f4320c9a15 SHA512 815ef678b7510e014181f3bf782e627771e8d00d218b34f2af11436b8a49331400269f98448854353c12721468365b71a8483eb7631777f0d628982e81942a8b diff --git a/dev-libs/cudnn/cudnn-8.3.1.22.ebuild b/dev-libs/cudnn/cudnn-8.3.1.22.ebuild new file mode 100644 index 000000000..73c164ed6 --- /dev/null +++ b/dev-libs/cudnn/cudnn-8.3.1.22.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="NVIDIA Accelerated Deep Learning on GPU library" +HOMEPAGE="https://developer.nvidia.com/cuDNN" + +# TODO: cuda 10.2 support +SRC_URI="cuda11-5? ( cudnn-linux-x86_64-${PV}_cuda11.5-archive.tar.xz )" +S="${WORKDIR}/cudnn-linux-x86_64-${PV}_cuda11.5-archive" + +LICENSE="NVIDIA-cuDNN" +SLOT="0/8" +KEYWORDS="~amd64 ~amd64-linux" +IUSE="+cuda11-5" +REQUIRED_USE="^^ ( cuda11-5 )" +RESTRICT="fetch" + +RDEPEND=" + cuda11-5? ( =dev-util/nvidia-cuda-toolkit-11.5* )" + +QA_PREBUILT="*" + +src_install() { + insinto /opt/cuda/targets/x86_64-linux + doins -r include + + insinto /opt/cuda/targets/x86_64-linux/lib + doins -r lib/. +} diff --git a/dev-libs/cudnn/metadata.xml b/dev-libs/cudnn/metadata.xml new file mode 100644 index 000000000..7e420583a --- /dev/null +++ b/dev-libs/cudnn/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <use> + <flag name="cuda11-5">On Nvidia CUDA 11.5</flag> + </use> +</pkgmetadata> |