Skip to content

[libcu++] Deprecate cuda::bit_reverse - #12681

Merged
davebayer merged 2 commits into
NVIDIA:mainfrom
davebayer:deprecate_cuda_bit_reverse
Nov 18, 2026
Merged

davebayer merged 2 commits into
NVIDIA:mainfrom
davebayer:deprecate_cuda_bit_reverse

Conversation

@davebayer

Copy link
Copy Markdown
Contributor

We have cuda::std::bit_reverse now implementing the same functionality

@davebayer
davebayer requested review from a team as code owners November 18, 2026 14:18
@davebayer
davebayer requested a review from gonidelis November 18, 2026 14:18
@davebayer
davebayer requested a review from Jacobfaib November 18, 2026 14:18
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Nov 18, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Nov 18, 2026
@davebayer davebayer linked an issue Nov 18, 2026 that may be closed by this pull request
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: NVIDIA/cccl
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 095aedb
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: fe6bc3e2-a37b-40e2-810a-7eef1518fa59
Commits

Reviewing files that changed from the base of the PR and between 9e7a370 and ba54eb7.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Deprecations
    • Marked cuda::bit_reverse as deprecated. It is planned for removal in the next major release; use cuda::std::bit_reverse instead.
    • Updated availability information to note the deprecation beginning with CCCL 3.7.0.

The PR marks cuda::bit_reverse deprecated, documents cuda::std::bit_reverse as its replacement, and updates tests to use or account for the deprecated API.

Changes: cuda::bit_reverse deprecation

Layer / File(s) Summary
Deprecation declaration and documentation
libcudacxx/include/cuda/__bit/bit_reverse.h, docs/libcudacxx/extended_api/bit/bit_reverse.rst, docs/libcudacxx/extended_api/bit.rst
The declaration and documentation mark cuda::bit_reverse deprecated, state that it will be removed in the next major release, and direct callers to cuda::std::bit_reverse.
Related test updates
libcudacxx/test/libcudacxx/cuda/bit/bit_reverse.pass.cpp, libcudacxx/test/libcudacxx/std/numerics/simd/simd.bit/bit_reverse.pass.cpp
The CUDA API test adds CCCL_IGNORE_DEPRECATED_API. The SIMD test includes <cuda/std/bit> and uses cuda::std::bit_reverse as its scalar reference.

Possibly related issues

  • Issue 10225 requests deprecating cuda::bit_reverse; this PR directly implements that change.
  • Issue 10056 includes bit_reverse among bit-permutation items. This PR redirects cuda::bit_reverse callers to cuda::std::bit_reverse; other permutation items are not changed.

Suggested reviewers: fbusato

Change: Other

Merge Risk: Minimal · previous review 9e7a3

This deprecates cuda::bit_reverse in favor of cuda::std::bit_reverse. External callers will see a compiler warning but behavior is unchanged. The merge risk is minimal.

Security architecture risk: Minimal · up to 9e7a3

The legacy function remains callable and delegates to the same implementation. The change adds migration guidance and compiler diagnostics without establishing an introduced security, state-management, or failure-containment risk.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The inspected production delta affects diagnostics for consumers of the legacy API, not the authority or reachability of its computation. The routed test-only call does not establish a newly exposed production attack path.

Trust Boundaries and Controls

  • observed — The legacy wrapper accepts a value and returns the existing replacement’s result without introducing identity, privilege, ownership, or shared-state transitions in that wrapper.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: NVIDIA/cccl
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: acc2b08
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 05159369-fbb9-4640-bee4-45fdb16459fb
Commits

Reviewing files that changed from the base of the PR and between acc2b08 and 9e7a370.

Files selected for processing: 5

  • docs/libcudacxx/extended_api/bit.rst
  • docs/libcudacxx/extended_api/bit/bit_reverse.rst
  • libcudacxx/include/cuda/__bit/bit_reverse.h
  • libcudacxx/test/libcudacxx/cuda/bit/bit_reverse.pass.cpp
  • libcudacxx/test/libcudacxx/std/numerics/simd/simd.bit/bit_reverse.pass.cpp

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

@davebayer
davebayer enabled auto-merge (squash) November 18, 2026 15:58
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@davebayer
davebayer merged commit b1fb09d into NVIDIA:main Nov 18, 2026
255 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 39m: Pass: 100%/226 | Total: 2d 08h | Max: 1h 21m | Hits: 87%/782665

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: Done

Development

Successfully merging this pull request may close these issues.

[FEA]: Deprecate cuda::bit_reverse

3 participants