Skip to content

Will cuco::static_multimap get a for_each API, or is there a way to get similar functionality? #528

Answered by PointKernel
michaelfliu asked this question in Q&A
Discussion options

You must be logged in to vote

Does this method seem reasonable?

Yes, absolutely. Here's an example that may help simplify the work: https://godbolt.org/z/Weoj8WKba. The build error will be gone once #529 gets merged.

I was trying to fuse the "retrieve" and "count" operations into one kernel for better performance but then realized some desired APIs like view::initial_slot are not publicly available. Sorry for the inconvenience.

In the meantime, we are deprecating the legacy multimap and the new one will be shipping out in the next month or two. With the new multimap, features like for_each are exposed to the public and writing your custom kernel doing sum reduction will become possible. Stay tuned.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@michaelfliu
Comment options

Answer selected by michaelfliu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: feature request New feature request topic: static_multimap Issue related to the static_multimap
3 participants