Implement parallel cuda::std::unique_copy#7987
Open
miscco wants to merge 5 commits intoNVIDIA:mainfrom
Open
Conversation
We want to use the public methods in the PSTL backend, so add an overload that takes a predicate.
This implements the unique_copy algorithm for the cuda backend. * `std::unique_copy` see https://en.cppreference.com/w/cpp/algorithm/unique_copy.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#7927
6c5e0a0 to
b84dc83
Compare
This comment has been minimized.
This comment has been minimized.
Contributor
|
/ok to test c3219c7 |
bernhardmgruber
approved these changes
Mar 11, 2026
Contributor
😬 CI Workflow Results🟥 Finished in 2h 06m: Pass: 96%/99 | Total: 2d 01h | Max: 1h 48m | Hits: 92%/242628See results here. |
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 unique_copy algorithm for the cuda backend.
std::unique_copysee https://en.cppreference.com/w/cpp/algorithm/unique_copy.htmlIt 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
DeviceSelect::Uniqueto accept a predicate #7988Fixes #7927