Skip to content

Use CCCL aliases and stream-ordered pinned and managed resources - #3159

Draft
bdice wants to merge 5 commits into
NVIDIA:mainfrom
bdice:raft-resource-ref-aliases
Draft

bdice wants to merge 5 commits into
NVIDIA:mainfrom
bdice:raft-resource-ref-aliases

Conversation

@bdice

@bdice bdice commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

Use CCCL's cuda::mr::device_resource_ref, host_device_resource_ref, any_device_resource, and any_host_device_resource directly instead of RMM/RAFT aliases. Deprecate the corresponding existing RAFT aliases in favor of the CCCL names; no new stream-ordered aliases are introduced in RAFT.

Pinned and managed resource APIs now require the stream-ordered interface rather than erasing resources as synchronous-only. Adapt the existing CCCL legacy defaults with cuda::mr::synchronous_resource_adapter, preserving their allocation behavior while exposing stream-ordered allocation/deallocation. Update the container policies and tracking adaptors to carry the new reference type. Host containers still allocate synchronously for immediate CPU access.

API impact: pinned/managed setter and getter types change. Custom synchronous-only resources must be wrapped in cuda::mr::synchronous_resource_adapter; async-capable resources can be passed directly. The deprecated raft::mr::host_device_resource and host_device_resource_ref aliases now name the stream-ordered CCCL types.

Host-only PMR/mmap resources remain synchronous. Keep raft::mr::synchronous_host_resource_ref and deprecate the ambiguous raft::mr::host_resource_ref name. The synchronous host-only owning alias remains unchanged.

Requires NVIDIA/cccl#11751, available through rapidsai/rapids-cmake#1097. Part of rapidsai/build-planning#337.

@bdice bdice added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Sep 29, 2026
@copy-pr-bot

copy-pr-bot Bot commented Sep 29, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@bdice
bdice force-pushed the raft-resource-ref-aliases branch from 27ef5d2 to 16558d0 Compare October 2, 2026 14:25
@bdice bdice changed the title Define raft::mr::device_resource_ref and synchronous_ resource ref aliases Use CCCL memory resource aliases directly Oct 2, 2026
@bdice bdice removed the non-breaking Non-breaking change label Oct 2, 2026
@bdice bdice changed the title Use CCCL memory resource aliases directly Use CCCL aliases and stream-ordered pinned and managed resources Oct 2, 2026
@bdice bdice added the breaking Breaking change label Oct 2, 2026
@bdice
bdice force-pushed the raft-resource-ref-aliases branch from 20dcb0d to a4975a7 Compare October 9, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking change improvement Improvement / enhancement to an existing function

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant