You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We have
cuda::std::bit_reversenow implementing the same functionality