Skip to content

Change thrust::make_discard_iterator to cuda::make_discard_iterator - #21526

Merged
rapids-bot[bot] merged 1 commit into
NVIDIA:mainfrom
davidwendt:discard-iterator
Feb 24, 2026
Merged

rapids-bot[bot] merged 1 commit into
NVIDIA:mainfrom
davidwendt:discard-iterator

Conversation

@davidwendt

@davidwendt davidwendt commented Feb 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Replaces the thrust::make_discard_iterator with cuda::make_discard_iterator in the libcudf source files.

There are still 2 files that do not compile when thrust::make_discard_iterator is replaced with cuda::make_discard_iterator.
Opened a CCCL issue to look into it: NVIDIA/cccl#7783

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt self-assigned this Feb 24, 2026
@davidwendt davidwendt added 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Feb 24, 2026
@copy-pr-bot

copy-pr-bot Bot commented Feb 24, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Feb 24, 2026
@davidwendt
davidwendt marked this pull request as ready for review February 24, 2026 17:43
@davidwendt
davidwendt requested a review from a team as a code owner February 24, 2026 17:43
@vuule

vuule commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

There are still 2 files that do not compile when thrust::make_discard_iterator is replaced with cuda::make_discard_iterator.

Do you know why they fail?

@davidwendt

Copy link
Copy Markdown
Contributor Author

There are still 2 files that do not compile when thrust::make_discard_iterator is replaced with cuda::make_discard_iterator.

Do you know why they fail?

Different implementations. I opened a CCCL issue here: NVIDIA/cccl#7783
The thrust one has a value_type of any_assign while the cuda one has value_type of void.
The any_assign has a no-op operator so it can be set to anything.
There appears to be logic in the inclusive_scan that does not like the void type.
Anyway, CCCL is working on it.

@davidwendt

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit 634eca8 into NVIDIA:main Feb 24, 2026
127 of 128 checks passed
@davidwendt
davidwendt deleted the discard-iterator branch February 24, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants