Add cudf::detail::copy_if_async utility#21495
Merged
rapids-bot[bot] merged 5 commits intorapidsai:mainfrom Feb 23, 2026
Merged
Conversation
PointKernel
approved these changes
Feb 20, 2026
| auto const num_items = cuda::std::distance(begin, end); | ||
|
|
||
| auto tmp_bytes = std::size_t{0}; | ||
| auto no_out = thrust::make_discard_iterator<int>(); |
Member
There was a problem hiding this comment.
For reference, in NVIDIA/cuCollections#797 I confirmed that cuda::discard_iterator is now available. We could migrate all existing uses to the cuda:: version in a separate PR.
Contributor
Author
There was a problem hiding this comment.
Ok, it did not show up in my intellisense so I wasn't sure it was ready yet.
I will double check it is available in our version of CCCL
Member
There was a problem hiding this comment.
Cuco uses the same or slightly older rapids-cmake (and therefore CCCL), so anything in cuco is also in cudf.
Contributor
Author
There was a problem hiding this comment.
Ok, good to know. Thanks.
vyasr
approved these changes
Feb 21, 2026
Contributor
Author
|
/merge |
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.
Description
Adds the
cudf::detail::copy_if_asyncutility which is useful when the result of the copy-if is not needed and therefore no stream sync is required. Also updates the many places that can use this.Checklist