Skip to content

Add env DeviceMergeSort::*Copy() overloads#8056

Open
gonidelis wants to merge 1 commit intoNVIDIA:mainfrom
gonidelis:merge_sort_copy_env
Open

Add env DeviceMergeSort::*Copy() overloads#8056
gonidelis wants to merge 1 commit intoNVIDIA:mainfrom
gonidelis:merge_sort_copy_env

Conversation

@gonidelis
Copy link
Member

closes #7997

@gonidelis gonidelis requested a review from a team as a code owner March 17, 2026 03:32
@gonidelis gonidelis requested a review from davebayer March 17, 2026 03:32
@github-project-automation github-project-automation bot moved this to Todo in CCCL Mar 17, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Mar 17, 2026
@gonidelis gonidelis force-pushed the merge_sort_copy_env branch from c70cd14 to 6f1ef77 Compare March 17, 2026 03:38
@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 12m: Pass: 100%/249 | Total: 3d 12h | Max: 52m 19s | Hits: 95%/158752

See results here.

Comment on lines +123 to +127
thrust::device_vector<int> expected_keys{0, 3, 5, 6, 7, 8, 9};
// example-end sort-pairs-copy-env

REQUIRE(error == cudaSuccess);
REQUIRE(d_keys_out == expected_keys);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important: Please also verify d_values_out which have a deterministic value here.

Comment on lines +106 to +107
c2h::device_vector<int> expected_keys{0, 3, 5, 6, 7, 8, 9};
REQUIRE(d_keys_out == expected_keys);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important: Please also verify the values here. There are no equivalent keys, so the values have a fixed outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

Add env-based cub::DeviceMergeSort::*Copy()

2 participants