[FEA]: Add tests for large problem sizes in cub::DeviceMergeSort
and fix integer overflow for problem sizes close to numeric_limits<OffsetT>::max()
#1334
Labels
bug
Something isn't working right.
cub
For all items related to CUB
feature request
New feature or request.
Is this a duplicate?
Area
CUB
Is your feature request related to a problem? Please describe.
After working on #1211 we should also add tests for large problem sizes (i.e., large
num_items
count).Note, there are issues related to integer overflow when
num_items
is getting close tostd::numeric_limits<OffsetT>::max()
. In particular for 32-bit signed and unsigned types. So, a sub-task is to also fix potential integer overflows.Describe the solution you'd like
num_items
being close tostd::numeric_limits<OffsetT>::max()
.num_items
being slightly above abovestd::numeric_limits<std::uint32_t>::max()
to we are correctly computing offsets without wrapping around.num_items
is close tostd::numeric_limits<OffsetT>::max()
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: