Skip to content

Scope for keys and values as strings #728

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

You must be logged in to vote

why this feature is not there, will inclusion of strings result in performance slower than cpu?

Yes, that's correct. Depending on the GPU architecture, only 4-byte and 8-byte atomic operations are supported by hardware and that's why we only support up to 8B keys for now. Hopper and newer GPUs support 12-byte atomics, and we plan to extend our code to support them soon.

what is the solution to this if we don't want to do the hashing part on cpu?

Here's an example demonstrating how to use cuco's hash table with arbitrary key types: https://github.com/NVIDIA/cuCollections/blob/dev/examples/static_set/mapping_table_example.cu.
@Utkarsh250802 You can also check out the Godbolt version her…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PointKernel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
topic: static_map Issue related to the static_map
2 participants