Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926773 - sci-libs/caffe2-2.2.1 fails with dev-libs/FBGEMM-2023.11.02: no matching function for call to 'GenerateEmbeddingSpMDM'
Summary: sci-libs/caffe2-2.2.1 fails with dev-libs/FBGEMM-2023.11.02: no matching func...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PullRequest
: 926771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-11 16:33 UTC by Sv. Lockal
Modified: 2024-03-13 20:48 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 Sv. Lockal 2024-03-11 16:33:58 UTC
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`.
Comment 1 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=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(-)
Comment 2 Mike Gilbert gentoo-dev 2024-03-13 20:48:32 UTC
*** Bug 926771 has been marked as a duplicate of this bug. ***