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
[FEA] On-demand size computation to solve #65 and #39 #102
In order to support fully asynchronous bulk operations, e.g., for multi-GPU hash tables, as requested in #65, we need to rethink the way we compute the table's size.
For now, insert tracks the number of successful insertions on-the-fly. After the kernel has finished, we copy the number back to the host and add it to the size_ member. This implies that insert synchronizes with the host.
In order to overcome this limitation for cuco::static_reduction_map (PR #98), 902b93a proposes a standalone size computation based on thrust::count_if and also implements fully asynchronous bulk operations.
The size computation using thrust::count_if shows near SOL performance in terms of throughput.
Additionally, since we do not need to reduce the number of added pairs during insertion, the overall performance of the insert bulk operation improves by ~3-5%.
IMHO we should also add this feature to the other hash table implementations.
Activity
[-][FEA] On-demand size computation to solve #65[/-][+][FEA] On-demand size computation to solve #65 and #39[/+]jrhemstad commentedon Aug 10, 2021
Can you benchmark doing a
insert()followed bysize()with both approaches?sleeepyjack commentedon Aug 11, 2021
Benchmark setup:
insert(), i.e., with implicit size computationinsert(), i.e., without size computation as well asinsert()+size()to emulate the behaviour of the baseline version.sleeepyjack commentedon Aug 11, 2021
Same but for 8+8 byte key/value pairs:
sleeepyjack commentedon Aug 11, 2021
I'm not quite sure why the performance of the standalone
size()is slightly worse compared to 4+4 byte pairs.Maybe my approach of converting a slot into a
thrust::tupleto be fed into thethrust::count_ifpredicate is not neccessary:https://github.com/sleeepyjack/cuCollections/blob/902b93a64c3c07fbc0108bdba56b2bbc6e1f9b55/include/cuco/detail/static_reduction_map.inl#L188
We could also use
cud::DeviceReduce::Reducewith an iterator over the key fields in all slots.PointKernel commentedon Dec 5, 2024
Completed