Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 905286

Summary: sci-libs/caffe2 and other libraries depend on cudnn, but should be satisfied with rocm/hip/miopen for AMD GPUs
Product: Gentoo Linux Reporter: Simon <sur3>
Component: Current packagesAssignee: Tupone Alfredo <tupone>
Status: RESOLVED FIXED    
Severity: normal CC: admnd, lockalsash, negril.nx+gentoo, telans
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/35713
Whiteboard:
Package list:
Runtime testing required: ---

Description Simon 2023-04-29 08:49:33 UTC
When trying to install caffe2 with cuda use flag for AMD GPUs it forces cudnn dependancies, when it should be satisfied with rocm/hip/miopen as well, maybe introduce a virtual cudnn that is also satisfied with the AMD wrapper or introduce a rocm specific use flag in addition to the cuda use flag.. https://github.com/ROCmSoftwarePlatform/hipDNN
Comment 1 Tupone Alfredo gentoo-dev 2023-05-07 13:28:01 UTC
patches (or pull request are very welcome)
Comment 2 Sv. Lockal 2024-01-14 19:24:34 UTC
Working on that. After merge of https://github.com/gentoo/gentoo/pull/33400 it is almost straightforward.
Comment 3 Larry the Git Cow gentoo-dev 2024-03-11 19:28:33 UTC
The bug has been closed via the following commit(s):

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

commit a5bd494c9be931e7bdcf88f75f37d9f4d8594864
Author:     Sv. Lockal <lockalsash@gmail.com>
AuthorDate: 2024-03-11 16:37:02 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2024-03-11 19:27:48 +0000

    sci-libs/caffe2: add USE=rocm flag for AMDGPU support for 2.1.2 and 2.2.1
    
    Closes: https://bugs.gentoo.org/905286
    Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/35713
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 ...ffe2-2.1.2-r6.ebuild => caffe2-2.1.2-r7.ebuild} | 61 +++++++++++++++----
 ...{caffe2-2.2.1.ebuild => caffe2-2.2.1-r1.ebuild} | 54 ++++++++++++++---
 .../files/caffe2-2.1.2-rocm-fix-std-cpp17.patch    | 68 ++++++++++++++++++++++
 sci-libs/caffe2/metadata.xml                       |  1 +
 4 files changed, 166 insertions(+), 18 deletions(-)