Use forward_property for property forwarding in resource_ref wrappers#2328
Merged
rapids-bot[bot] merged 1 commit intorapidsai:mainfrom Mar 23, 2026
Merged
Conversation
Replace the hand-rolled friend get_property templates in cccl_resource_ref and cccl_async_resource_ref with inheritance from cuda::forward_property. This delegates property forwarding to CCCL's own machinery, which correctly handles dynamic_accessibility_property (NVIDIA/cccl#7727) and any future properties without ambiguity. Each wrapper now exposes upstream_resource() returning the inner ResourceType, as required by forward_property for stateful properties. Closes rapidsai#2322
rongou
approved these changes
Mar 23, 2026
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe PR refactors property forwarding in two CCCL adaptor classes ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Collaborator
Author
|
/merge |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Replace the hand-rolled friend
get_propertytemplates incccl_resource_refandcccl_async_resource_refwith inheritance fromcuda::forward_property. This delegates property forwarding to CCCL's own machinery, which correctly handlesdynamic_accessibility_property(NVIDIA/cccl#7727) and any future properties without ambiguity.Each wrapper now exposes
upstream_resource()returning the innerResourceType, as required byforward_propertyfor stateful properties.Tests add minimal
forward_propertyadaptors using RMM resource refs as upstream, exercising the exact scenario that causes the ambiguity.Note: this is a temporary solution for the
mainbranch -- resolving #2323 / #2325 will remove this code on thestagingbranch while I continue working on CCCL MR migrations.Closes #2322.
Checklist