commit: 56fdc21add4251167a138aebf94bed493a5b2f90 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> AuthorDate: Thu Feb 20 08:37:45 2020 +0000 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> CommitDate: Fri Feb 21 08:13:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56fdc21a
dev-libs/cudnn: Introduce use flags for CUDA versions. Suggested-By: Amlesh Sivanantham, Daniel M. Weeks Closes: https://bugs.gentoo.org/658118 Package-Manager: Portage-2.3.88, Repoman-2.3.18 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> dev-libs/cudnn/Manifest | 1 + dev-libs/cudnn/cudnn-7.6.5.32-r1.ebuild | 36 +++++++++++++++++++++++++++++++++ dev-libs/cudnn/metadata.xml | 4 ++++ 3 files changed, 41 insertions(+) diff --git a/dev-libs/cudnn/Manifest b/dev-libs/cudnn/Manifest index 104de1f6996..c9ddcf69d05 100644 --- a/dev-libs/cudnn/Manifest +++ b/dev-libs/cudnn/Manifest @@ -4,6 +4,7 @@ DIST cudnn-10.1-linux-x64-v7.5.0.56.tgz 471291852 BLAKE2B 966a84e983631c827d7852 DIST cudnn-10.1-linux-x64-v7.6.0.64.tgz 500810447 BLAKE2B cfe884dd3b2a5ca4641844a0b5df22420148bcd9092b9ad81a45560f901d36e3ab228e7b5fed85519094f4b68be46cbb631368d67166cbef2546b94185a9058d SHA512 c8d2c6efdb79940f5d475057b1e11246038b894990f58a620635e03d561ec3987806c0bccee8c12d0d3d8c4b5bf5211e46faa2c12918520af61f36bd36eb1738 DIST cudnn-10.1-linux-x64-v7.6.1.34.tgz 521806738 BLAKE2B 9804ed394cf58f0c415d454ce83503db3faff74181e3746eabbae648cf85718ccfdcc1b64877e30e367a285294665975169fe1f992c27ac12b65d340784079a8 SHA512 81dc9a3d07885996b3b7141ea9785768dd6e266d138a671b934139b38ac1dcab0ffdb97617b308a9f492b5b163cb4dd65972e24de98499a2ecbed2bd261c1244 DIST cudnn-10.1-linux-x64-v7.6.2.24.tgz 522872521 BLAKE2B 6424ade8443521138b36bb528105bc482202ff475dd3eb3aaa7f992e8ad8b67628ac1b464d10056f16bb5766fb8464abe8ae406f8766831d248b90796d146c1e SHA512 3451c113b4dcb8aaa33b2740e0e0b60d121ef02525c4e8ece3d7afd76b3472f704a90eb69d1a06f2bc94a981c2bfa3bea2f3bd057dcbdc6eecdea1056563057d +DIST cudnn-10.1-linux-x64-v7.6.5.32.tgz 523418497 BLAKE2B 28febb24382d411faa870cd42e999431d1ee1d083c09903ee4a8f5bee676981c60f6daf6cd256978db69345397db743a7a6f6187376520f5c4f968f6177e0201 SHA512 1073bc42c2c36fce6b710882a04a4035d66d95c410200b9d50953e993d7b801cc3a837e42843ad2447e62ea5dfc8ba22c8a803464716c56ffb811aa278645771 DIST cudnn-10.2-linux-x64-v7.6.5.32.tgz 548210361 BLAKE2B 51fdd14f0bbc5a029bddca94ab7ae56ee77c16fdc525c78b986bb3dc1e0525943e5ab17eb81e356ef92c985ee467bd87a6670c343a96136d932ace86bb649437 SHA512 943c1afc0b7711dec87931770eaa567e25361a31ed5e1edabcc3f81df72880428611308e8032a28dc197e8c5edfebe3f67cc9d22a21eb569d8b254d8eb84eac6 DIST cudnn-8.0-linux-x64-v6.0.tgz 201134139 BLAKE2B a7e616c671272a3a0f0c51b93646c8c60302c3dec85b71144e011bc3460d0ce80ff75d39869c05c4ef183d2d09aff31bb470a3fd3fd3d79b581a7a2d5a349279 SHA512 ddeeacb5b449920d942a26b98c353d78fd6f7d7fb3b3ce42a078626473efdda25c7ae641232702d62eb5749e39ecfd03e88346119c920c19348ac3ee82d3ff47 DIST cudnn-9.1-linux-x64-v7.tgz 343081241 BLAKE2B 22c2fbef38a05e7929ccc28410dfdbff906b2c3e97e0419cf83988c2fc2340005e4a944d43b1a215b0c3458b2cad03480b7e537ae93861924c28ec1010a530fb SHA512 7eadb64a3d5e49aec2761e6f7dc0295c1d356910b114eed450c47081fc81b6e3b7748f3a4153f6a9d957691e3689cd52823bfa12816b1950dfc8794d6f332749 diff --git a/dev-libs/cudnn/cudnn-7.6.5.32-r1.ebuild b/dev-libs/cudnn/cudnn-7.6.5.32-r1.ebuild new file mode 100644 index 00000000000..403e64d9e5f --- /dev/null +++ b/dev-libs/cudnn/cudnn-7.6.5.32-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 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="cuda10_2? ( cudnn-10.2-linux-x64-v${PV}.tgz ) + cuda10_1? ( cudnn-10.1-linux-x64-v${PV}.tgz )" + +SLOT="0/7" +KEYWORDS="~amd64 ~amd64-linux" +RESTRICT="fetch" +LICENSE="NVIDIA-cuDNN" +QA_PREBUILT="*" + +IUSE="+cuda10_2 cuda10_1" +REQUIRED_USE="^^ ( cuda10_2 cuda10_1 )" + +S="${WORKDIR}" + +DEPEND="cuda10_2? ( =dev-util/nvidia-cuda-toolkit-10.2* ) + cuda10_1? ( =dev-util/nvidia-cuda-toolkit-10.1* )" +RDEPEND="${DEPEND}" + +src_install() { + insinto /opt/cuda + doins cuda/NVIDIA_SLA_cuDNN_Support.txt + + insinto /opt/cuda/targets/x86_64-linux/include + doins -r cuda/include/* + + insinto /opt/cuda/targets/x86_64-linux/lib + doins -r cuda/lib*/* +} diff --git a/dev-libs/cudnn/metadata.xml b/dev-libs/cudnn/metadata.xml index 8425c0d53cb..5986e2a043f 100644 --- a/dev-libs/cudnn/metadata.xml +++ b/dev-libs/cudnn/metadata.xml @@ -5,4 +5,8 @@ <email>s...@gentoo.org</email> <name>Gentoo Science Project</name> </maintainer> + <use> + <flag name="cuda10_2">On nVidia CUDA 10.2.</flag> + <flag name="cuda10_1">On nVidia CUDA 10.1.</flag> + </use> </pkgmetadata>