Skip to content

cuda::is_bitwise_comparable#8270

Open
fbusato wants to merge 4 commits intoNVIDIA:mainfrom
fbusato:is_bitwise_comparable
Open

cuda::is_bitwise_comparable#8270
fbusato wants to merge 4 commits intoNVIDIA:mainfrom
fbusato:is_bitwise_comparable

Conversation

@fbusato
Copy link
Copy Markdown
Contributor

@fbusato fbusato commented Apr 1, 2026

Description

Followup of the discussion in

The PR introduces cuda::is_bitwise_comparable to:

  1. Allow user specification.
  2. Disable comparison of types that are actually not bit bitwise comparable, namely extended floating-point types.

The new trait relies on has_unique_object_representations_v but is disabled the following cases:

  • extended floating-point types.
  • extended floating-point vector types.
  • Raw arrays, cuda::std::array of extended floating-point.
  • cuda::std::pair of extended floating-point.
  • cuda::std::tuple of extended floating-point.
  • Nested compositions of the above cases.

Potentially affected paths by cuda::std::is_bitwise_comparable:

  • cuda::device::warp_match_all

@fbusato fbusato self-assigned this Apr 1, 2026
@fbusato fbusato requested review from a team as code owners April 1, 2026 23:32
@fbusato fbusato added the libcu++ For all items related to libcu++ label Apr 1, 2026
@fbusato fbusato added this to CCCL Apr 1, 2026
@github-project-automation github-project-automation bot moved this to Todo in CCCL Apr 1, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Apr 1, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

🥳 CI Workflow Results

🟩 Finished in 2h 01m: Pass: 100%/108 | Total: 2d 18h | Max: 1h 56m | Hits: 93%/281582

See results here.

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

Labels

libcu++ For all items related to libcu++

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants