Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try harder to unwrap nested thrust::tuple_of_iterator_references #1469

Merged
merged 6 commits into from
Mar 7, 2024

Conversation

miscco
Copy link
Collaborator

@miscco miscco commented Mar 1, 2024

We tried to simply unpack the tuple_of_iterator_references, however, if it contained nested tuple_of_iterator_references then that would break down. Instead recursively apply the unwrapping when possible

Fixes #1467

@miscco miscco requested review from a team as code owners March 1, 2024 10:14
@miscco miscco requested review from alliepiper, griwes and gevtushenko and removed request for griwes March 1, 2024 10:14
@miscco miscco added thrust For all items related to Thrust. bug: functional backport branch/2.4.x For backporting to the 2.4.x release branch labels Mar 1, 2024
@miscco miscco requested a review from griwes March 1, 2024 10:15
@miscco miscco removed the backport branch/2.4.x For backporting to the 2.4.x release branch label Mar 6, 2024
We were defining our own set of iterator categories

That meant that an interator that is a `std::random_access_iterator` would not be a `cuda::std::random_access_iterator`

To ensure that we are playing nicely with iterators that use `std::` iterator categories just pull in the standard ones.

Fixes [BUG]: cuda::std::iterator_traits does not expose proper member types in old C++ dialects NVIDIA#1509
We tried to simply unpack the `tuple_of_iterator_references`, however, if it contained nested `tuple_of_iterator_references` then that would break down. Instead recursively apply the unwrapping when possible
@miscco miscco requested a review from a team as a code owner March 7, 2024 12:33
@miscco miscco merged commit ca11fef into NVIDIA:main Mar 7, 2024
584 checks passed
@miscco miscco deleted the fix_zip_function branch March 7, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: functional thrust For all items related to Thrust.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG]: Attempting to use nested zip iterators fails to compile with main (works with cccl v2.2)
2 participants