Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA]: Add efficient unstable thread sort #1551

Open
1 task done
Nyrio opened this issue Mar 19, 2024 · 0 comments · May be fixed by #1552
Open
1 task done

[FEA]: Add efficient unstable thread sort #1551

Nyrio opened this issue Mar 19, 2024 · 0 comments · May be fixed by #1552
Labels
feature request New feature or request.

Comments

@Nyrio
Copy link
Contributor

Nyrio commented Mar 19, 2024

Is this a duplicate?

Area

CUB

Is your feature request related to a problem? Please describe.

The thread sort currently only has a stable method, the odd-even transpose sorting network, which has a complexity O(N^2).

Describe the solution you'd like

Other sorting networks such as Batcher's odd-even mergesort and Parberry's pairwise sort scale much better, with a complexity O(N log^2(N)), so for instance at 16 items/thread they would be 2x faster, at 64 items/thread 4x faster.

The block merge sort has stable and unstable APIs which could select the appropriate thread sort accordingly.

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request.
Projects
Status: In Review
1 participant