Skip to content

Cleanup some of thrust pointer traits#7439

Open
miscco wants to merge 4 commits intoNVIDIA:mainfrom
miscco:pointer_traits_address_of
Open

Cleanup some of thrust pointer traits#7439
miscco wants to merge 4 commits intoNVIDIA:mainfrom
miscco:pointer_traits_address_of

Conversation

@miscco
Copy link
Contributor

@miscco miscco commented Jan 30, 2026

This publicate a lot of logic.

Its a bit unfortunate, some of the logic is non standard conforming, so I was not yet able to replate all of it

@miscco miscco requested review from a team as code owners January 30, 2026 10:55
@miscco miscco requested a review from wmaxey January 30, 2026 10:55
@miscco miscco requested a review from davebayer January 30, 2026 10:55
@github-project-automation github-project-automation bot moved this to Todo in CCCL Jan 30, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Jan 30, 2026
@miscco miscco force-pushed the pointer_traits_address_of branch from c7fab2a to 0403ea8 Compare January 30, 2026 11:08

THRUST_NAMESPACE_END

_CCCL_BEGIN_NAMESPACE_CUDA_STD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This namespace shoulnd't be used outside of libcu++, we've already have some problems using it in cub

Copy link
Contributor

@bernhardmgruber bernhardmgruber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some questions.

Comment on lines +504 to +505
// Backwards compatability with thrust::detail::pointer_traits
using raw_pointer = typename pointer::raw_pointer;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: This is only used internally, right? So we can eventually remove this, right?

Comment on lines +522 to +526
//! For backwards compatability with old pointer traits
[[nodiscard]] _CCCL_API static constexpr raw_pointer get(const pointer iter) noexcept
{
return iter.get();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't we replace all occurrences by to_address?

@github-actions
Copy link
Contributor

😬 CI Workflow Results

🟥 Finished in 3h 43m: Pass: 97%/146 | Total: 6d 19h | Max: 3h 43m | Hits: 45%/350009

See results here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

3 participants