Skip to content
Discussion options

You must be logged in to vote

The key is a string (char*), the value is also a string (char*) and an access counter (HT<char*, {char*, int}>).

String is not a fixed-size data type thus would be really inefficient to perform hash table operations like insertion or query. Just to share some ideas with you, for an array of string data, we often store array indices as hash map keys/values thus the map is more of a mapping table. This also requires some extra work, e.g., you need to pass a custom hasher and a custom key equal functor to the map to make it work.

The CPU inserts all key, value pairs, and sets the access counter 0.

It's possible, but I highly recommend not to do that. cuco hash table is GPU-only

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shwetaiisc
Comment options

@PointKernel
Comment options

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
None yet
2 participants