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
Consider dropping DeviceSegmentedRadixSort by adding an overload for begin and end bits in DeviceSegmentedSort #6609
DeviceSegmentedSort is almost always preferred to DeviceSegmentedRadixSort. From the docs:
Differences from DeviceSegmentedRadixSort
DeviceSegmentedRadixSort is optimized for significantly large segments (tens of thousands of items and more). Nevertheless, some domains produce a wide range of segment sizes. DeviceSegmentedSort partitions segments into size groups and specialize sorting algorithms for each group. This approach leads to better resource utilization in the presence of segment size imbalance or moderate segment sizes (up to thousands of items). This algorithm is more complex and consists of multiple kernels. This fact leads to longer compilation times as well as larger binaries sizes.
For the next release, we should consider removing DeviceSegmentedRadixSort and just adding an overload to DeviceSegmentedSort that accepts the begin and end bits. If those are specified, we would dispatch segmented radix sort, while using the normal segmented sort in other cases. Some considerations:
Is DeviceSegmentedSort better in all cases? We should benchmark this to verify
DeviceSegmentedSort is currently not graph capturable. It would be bad practice to only be able to graph capture when the begin and end bits are specified.
Activity