You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] CAGRA multi-CTA and multi-kernel search over-allocate the hashmap they use #2856
hashmap is a lightweight_uvector<INDEX_T> (#L157), whose resize takes an element count and allocates new_size * sizeof(T) bytes from the workspace resource (#L62-L68). The single-CTA plan converts the size to an element count before resizing (search_single_cta.cuh#L209-L210). The multi-CTA and multi-kernel plans pass the byte count as if it were element count:
changed the title [-][BUG] CAGRA multi-CTA and multi-kernel search over-allocate the hashmap and top-k workspace they use[/-][+][BUG] CAGRA multi-CTA and multi-kernel search over-allocate the hashmap they use[/+]on Oct 14, 2026
Do you think it is better to convert the hashmap_size to be element counts, in all three search plan files or apply conversion in the Multi CTA and Multi Kernel search plan?
Activity
[-][BUG] CAGRA multi-CTA and multi-kernel search over-allocate the hashmap and top-k workspace they use[/-][+][BUG] CAGRA multi-CTA and multi-kernel search over-allocate the hashmap they use[/+]mc8max commentedon Nov 13, 2026
@irina-resh-nvda I am checking this issue.
Do you think it is better to convert the hashmap_size to be element counts, in all three search plan files or apply conversion in the Multi CTA and Multi Kernel search plan?
irina-resh-nvda commentedon Nov 13, 2026
Either approach will do, your PR looks fine