The actual memory footprint of static_map is larger than my estimation #650
-
Hi, I find the memory footprint of cuco::static_map is significantly larger than its theoretical size ( |
Beta Was this translation helpful? Give feedback.
Answered by
PointKernel
Dec 4, 2024
Replies: 1 comment 1 reply
-
After a few tests, I find the real reason is memory alignment issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The alignment of your key and payload types can be one factor, while another is that cuco hash tables ensure the requested capacity serves as a lower bound. They select the smallest prime number greater than the requested capacity as the actual capacity. see
cuCollections/include/cuco/extent.cuh
Lines 95 to 99 in 93d6172