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

Ports cub::DeviceMergeSort tests to Catch2 #1319

Merged
merged 8 commits into from
Feb 3, 2024

Conversation

elstehle
Copy link
Collaborator

@elstehle elstehle commented Jan 24, 2024

Description

Closes #1211

This PR migrates tests for cub::DeviceMergeSort to Catch2.

For our DeviceMergeSort interfaces that do not explicitly perform a stable sort, I tried to not imply that our current implementation is stable. So, similar to our original tests, I'm generating unique sort keys where there is no tie between any two input items. This ensures there's just a single one correct order for the result.

For the DeviceMergeSort interfaces that are stable, I try to cause multiple ties on the sort keys to test that the sort is indeed stable and that we maintain the relative input order between tied sort keys.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@elstehle elstehle requested review from a team as code owners January 24, 2024 18:08
cub/test/catch2_test_device_merge_sort.cu Outdated Show resolved Hide resolved
cub/test/catch2_test_device_merge_sort.cu Outdated Show resolved Hide resolved
cub/test/catch2_test_device_merge_sort.cu Outdated Show resolved Hide resolved
cub/test/catch2_test_device_merge_sort.cu Outdated Show resolved Hide resolved
cub/test/catch2_test_device_merge_sort.cu Outdated Show resolved Hide resolved
cub/test/catch2_test_device_merge_sort.cu Outdated Show resolved Hide resolved
cub/test/catch2_test_device_merge_sort.cu Outdated Show resolved Hide resolved
cub/test/catch2_test_device_merge_sort.cu Outdated Show resolved Hide resolved
cub/test/catch2_test_device_merge_sort.cu Show resolved Hide resolved
@elstehle elstehle merged commit 84565f5 into NVIDIA:main Feb 3, 2024
539 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Port test_device_merge_sort.cu to Catch2
3 participants