Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658118 - dev-libs/cudnn-7.0.5-r1 should set set the CUDA_PV variable intelligently
Summary: dev-libs/cudnn-7.0.5-r1 should set set the CUDA_PV variable intelligently
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-14 17:59 UTC by Amlesh Sivanantham
Modified: 2020-02-21 08:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amlesh Sivanantham 2018-06-14 17:59:17 UTC
dev-libs/cudnn-7.0.5 simply asumes that the dev-utils/nvidia-cuda-toolkit to be installed is 9.1, but instead from simply checking on the cudnn page, we can see that the supported version of the cuda toolkit include 8.0 and 9.0 as well. If I wanted to use a prior version of the nvidia-cuda-toolkit wich I would have masked, I would be unable to install cudnn even though such a package exists.

I don't know to much of ebuilds to propose edits to it but is it possible to create a ebuild that does that? If so, it should be done so users aren't forced to install a newer version of cuda toolkit to use cudnn.
Comment 1 Daniel M. Weeks 2018-06-20 19:56:19 UTC
There are other issues with the ebuild including the one you've identified:

* It's method for generating the SRC_URI is too simple and breaks with newer versions of cudnn

* The subslot is incomplete and could cause problems with newer versions

I found your report while working on these and I'll try to have a fix for some (all?) of them soon.
Comment 2 Amlesh Sivanantham 2018-06-20 20:34:12 UTC
(In reply to Daniel M. Weeks from comment #1)
> There are other issues with the ebuild including the one you've identified:
> 
> * It's method for generating the SRC_URI is too simple and breaks with newer
> versions of cudnn
> 
> * The subslot is incomplete and could cause problems with newer versions
> 
> I found your report while working on these and I'll try to have a fix for
> some (all?) of them soon.

Glad to hear it!
Comment 3 Larry the Git Cow gentoo-dev 2020-02-21 08:13:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56fdc21add4251167a138aebf94bed493a5b2f90

commit 56fdc21add4251167a138aebf94bed493a5b2f90
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2020-02-20 08:37:45 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2020-02-21 08:13:09 +0000

    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@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(+)