[libcu++] Improve the implementation of __cccl_is_referenceable - #11016
[libcu++] Improve the implementation of __cccl_is_referenceable#11016miscco wants to merge 1 commit into
__cccl_is_referenceable#11016Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe PR replaces legacy referenceability checks with ChangesReferenceability migration
Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change is a localized implementation cleanup with no actionable merge-blocking risk remaining after normal checks and review. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 32d5aa7a-d1da-4a67-9f48-944fb6e16034
📒 Files selected for processing (15)
libcudacxx/include/cuda/__iterator/transform_iterator.hlibcudacxx/include/cuda/std/__cccl/builtin.hlibcudacxx/include/cuda/std/__iterator/common_iterator.hlibcudacxx/include/cuda/std/__iterator/concepts.hlibcudacxx/include/cuda/std/__iterator/iter_move.hlibcudacxx/include/cuda/std/__iterator/iter_swap.hlibcudacxx/include/cuda/std/__iterator/iterator_traits.hlibcudacxx/include/cuda/std/__ranges/transform_view.hlibcudacxx/include/cuda/std/__type_traits/add_lvalue_reference.hlibcudacxx/include/cuda/std/__type_traits/add_pointer.hlibcudacxx/include/cuda/std/__type_traits/add_rvalue_reference.hlibcudacxx/include/cuda/std/__type_traits/decay.hlibcudacxx/include/cuda/std/__type_traits/is_referenceable.hlibcudacxx/include/cuda/std/__type_traits/is_swappable.hlibcudacxx/test/libcudacxx/libcxx/utilities/meta/is_referenceable.pass.cpp
💤 Files with no reviewable changes (1)
- libcudacxx/include/cuda/std/__cccl/builtin.h
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.
6bc0075 to
60e265a
Compare
We currently use nested types to implement it. Improve the implementation by using a simple variable template
60e265a to
d866707
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
libcudacxx/include/cuda/std/__cccl/builtin.h (1)
70-84: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winsuggestion: Apply one exact-condition rule to all changed preprocessor annotations.
- libcudacxx/include/cuda/std/__cccl/builtin.h#L70-L84: repeat the full conditions at Lines 76 and 84.
- libcudacxx/include/cuda/std/__type_traits/add_lvalue_reference.h#L27-L75: preserve the exact conditions, including NVRTC and the full fallback-selection predicate.
- libcudacxx/include/cuda/std/__type_traits/add_pointer.h#L31-L78: preserve the exact conditions, including NVRTC and the full fallback-selection predicate.
- libcudacxx/include/cuda/std/__type_traits/add_rvalue_reference.h#L27-L75: preserve the exact conditions, including NVRTC and the full fallback-selection predicate.
- libcudacxx/include/cuda/std/__type_traits/decay.h#L34-L57: preserve the exact conditions for libstdc++, NVRTC, and GCC.
Source: Learnings
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 4104ccd2-9724-44e0-bc43-89f38e118749
📒 Files selected for processing (5)
libcudacxx/include/cuda/std/__cccl/builtin.hlibcudacxx/include/cuda/std/__type_traits/add_lvalue_reference.hlibcudacxx/include/cuda/std/__type_traits/add_pointer.hlibcudacxx/include/cuda/std/__type_traits/add_rvalue_reference.hlibcudacxx/include/cuda/std/__type_traits/decay.h
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.
😬 CI Workflow Results🟥 Finished in 5h 04m: Pass: 99%/183 | Total: 7d 15h | Max: 5h 03m | Hits: 34%/3378375See results here. AI failure analysis1. cuVS balanced k-means: deleted RMM device_scalar rvalue constructor · 2 jobsExplanation: Both RAPIDS matrices fail at the same cuVS lines because literal zeroes select RMM 26.10's explicitly deleted rvalue constructor. This indicates incompatible downstream cuVS/RMM revisions rather than a failure in the changed libcudacxx trait code. Evidence: Copy this prompt into a coding agentJobs: 2. Artifact upload action archive unavailable from GitHub codeload · 1 jobExplanation: The libcudacxx build completed successfully, but the runner could not download the pinned `actions/upload-artifact` archive during the post-build upload step. The log cannot distinguish a transient GitHub codeload outage from an invalid or unavailable action commit. Evidence: Copy this prompt into a coding agentJobs: |
We currently use nested types to implement it. Improve the implementation by using a simple variable template