Repository navigation
Implement parallel cuda::std::swap_ranges - #8257
Merged
Merged
Conversation
Contributor
Author
|
Benchmarks look ok: |
1 task done
This comment has been minimized.
This comment has been minimized.
Jacobfaib
reviewed
Apr 1, 2026
| CHECK(res == nullptr); | ||
| } | ||
|
|
||
| { // With contiguous iterator |
Contributor
There was a problem hiding this comment.
Consider adding tests for only forward-iterators here as well.
Contributor
Author
There was a problem hiding this comment.
The cuda backend only supported random access
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
approved these changes
Apr 1, 2026
This implements the `swap_ranges` algorithm for the cuda backend. * std::swap_ranges see https://en.cppreference.com/w/cpp/algorithm/swap_ranges.html It provides tests and benchmarks similar to Thrust and some boilerplate for libcu++ The functionality is publicly available yet and implemented in a private internal header Fixes NVIDIA#7747
miscco
force-pushed
the
parallel_swap_ranges
branch
from
April 2, 2026 06:49
89a3dfe to
a54fb61
Compare
Contributor
🥳 CI Workflow Results🟩 Finished in 2h 44m: Pass: 100%/103 | Total: 2d 22h | Max: 1h 56m | Hits: 73%/276827See results here. |
gonidelis
pushed a commit
to gonidelis/cccl
that referenced
this pull request
Apr 8, 2026
* Implement parallel `cuda::std::swap_ranges` This implements the `swap_ranges` algorithm for the cuda backend. * std::swap_ranges see https://en.cppreference.com/w/cpp/algorithm/swap_ranges.html It provides tests and benchmarks similar to Thrust and some boilerplate for libcu++ The functionality is publicly available yet and implemented in a private internal header Fixes NVIDIA#7747 * Address review comments
jainishmehta
pushed a commit
to jainishmehta/cccl
that referenced
this pull request
Apr 19, 2026
* Implement parallel `cuda::std::swap_ranges` This implements the `swap_ranges` algorithm for the cuda backend. * std::swap_ranges see https://en.cppreference.com/w/cpp/algorithm/swap_ranges.html It provides tests and benchmarks similar to Thrust and some boilerplate for libcu++ The functionality is publicly available yet and implemented in a private internal header Fixes NVIDIA#7747 * Address review comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This implements the
swap_rangesalgorithm for the cuda backend.It provides tests and benchmarks similar to Thrust and some boilerplate for libcu++
The functionality is publicly available yet and implemented in a private internal header
Fixes #7747