Scope for keys and values as strings #728
-
In static map, currently we cannot use Strings directly as keys, even as vector of chars(due to 8 byte key limitation), why this feature is not there, will inclusion of strings result in performance slower than cpu? even for large datasets(10M-100M)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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.
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. |
Beta Was this translation helpful? Give feedback.
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.
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…