USE="fbgemm" emerge sci-libs/caffe2-2.2.1 fails with: /var/tmp/portage/sci-libs/caffe2-2.2.1/work/pytorch-2.2.1/aten/src/ATen/native/EmbeddingBag.cpp:241:11: error: no matching function for call to 'GenerateEmbeddingSpMDM' 241 | : fbgemm::GenerateEmbeddingSpMDM<uint16_t, index_t, index_t, uint16_t>( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sci-libs/caffe2-2.2.1/work/pytorch-2.2.1/aten/src/ATen/native/EmbeddingBag.cpp:1160:11: note: in instantiation of function template specialization 'at::native::(anonymous namespace)::index_select_add<c10::BFloat16, long>' requested here 1160 | index_select_add<scalar_t, index_t>(indices, offset2bag, weight, output, offsets, include_last_offset, bag_size, padding_idx, fbgemm_kernel_cache); | ^ /usr/include/fbgemm/FbgemmEmbedding.h:74:1: note: candidate function template not viable: requires at most 7 arguments, but 8 were provided 74 | GenerateEmbeddingSpMDM( | ^ 75 | const std::int64_t block_size, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 76 | bool has_weight, | ~~~~~~~~~~~~~~~~ 77 | bool normalize_by_lengths, | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 78 | int prefetch = 16, | ~~~~~~~~~~~~~~~~~~ 79 | bool is_weight_positional = false, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | bool use_offsets = true, | ~~~~~~~~~~~~~~~~~~~~~~~~ 81 | bool isbf16 = false); | ~~~~~~~~~~~~~~~~~~~ ------------------------------------------ caffe2-2.2.1.ebuild contains `>=dev-libs/FBGEMM-2023.11.02`, but working dependency is `>=dev-libs/FBGEMM-2023.12.01`.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04e14cabcf1361cd6f71cc29eb5787f697cf1b85 commit 04e14cabcf1361cd6f71cc29eb5787f697cf1b85 Author: Sv. Lockal <lockalsash@gmail.com> AuthorDate: 2024-03-11 16:34:59 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2024-03-11 19:27:44 +0000 sci-libs/caffe2: fix compilation with USE=fbgemm Closes: https://bugs.gentoo.org/926773 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Alfredo Tupone <tupone@gentoo.org> sci-libs/caffe2/caffe2-2.2.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
*** Bug 926771 has been marked as a duplicate of this bug. ***