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
patches (or pull request are very welcome)
Working on that. After merge of https://github.com/gentoo/gentoo/pull/33400 it is almost straightforward.
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(-)