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

Use Kokkos sort_by_key for stable sorting #129

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

CKegel
Copy link

@CKegel CKegel commented Feb 25, 2025

Omega_h currently relies on a set of vendor specific sorting routines captured in the parallel_sort() function. This pull request replaces the vendor specific sorting routines with Kokkos' new sort_by_key() routine, which provides a stable sorting routine utilizing the same comparator as the parallel_sort() function. A compile time option OMEGA_H_FORCE_KOKKOS_SORT is enabled by default and forces the use of the new sorting routine. It can be disabled to fall back to parallel_sort().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant