Skip to content

CCCL 3.2 resource ref compatibility - #2176

Merged
rapids-bot[bot] merged 5 commits into
rapidsai:mainfrom
bdice:cccl-3.2.x-compat
Dec 18, 2025
Merged

rapids-bot[bot] merged 5 commits into
rapidsai:mainfrom
bdice:cccl-3.2.x-compat

Conversation

@bdice

@bdice bdice commented Dec 9, 2025 •

Copy link
Copy Markdown
Collaborator

Description

This PR implements a "bridge" for CCCL 3.2 compatibility while retaining support for resources stored as device_memory_resource*. This is a different approach than #2162/#2166 and hopefully will be a better solution.

Before merging, we need to run C++ and Python tests for all of RAPIDS with both CCCL 3.1 and 3.2.

Part of #2143.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot

copy-pr-bot Bot commented Dec 9, 2025

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 cccl-3.2.x-compat branch from 967c800 to b20c573 Compare December 9, 2025 22:51
@bdice bdice mentioned this pull request Dec 11, 2025
33 tasks done
@bdice bdice added feature request New feature or request breaking Breaking change labels Dec 16, 2025
@bdice bdice self-assigned this Dec 16, 2025
@bdice bdice moved this to In Progress in RMM Project Board Dec 16, 2025
@bdice

bdice commented Dec 16, 2025

Copy link
Copy Markdown
Collaborator Author

/ok to test

updates RMM's `cccl_adaptors.hpp` to work with these changes.

The following changes are intended to be *temporary* until RAPIDS is
fully migrated to the new CCCL memory resource design. See
rapidsai#2011 for details.

- Switch from inheritance to composition for both `cccl_resource_ref` and
  `cccl_async_resource_ref`, to support construction from
  `device_memory_resource*`
- Add `device_memory_resource_view` member (a copyable resource) to
  preserve DMR pointers through copy/move operations. This class is a
  copyable view wrapping a `device_memory_resource` pointer.
- Add `is_specialization_of_v` trait to exclude `resource_ref` types
  from resource-accepting constructors (prevents recursive constraint
  satisfaction)

Version guards ensure CCCL 3.1/3.2 compatibility until the 3.2
transition is complete. This allows RMM to work with both CCCL 3.1 and
3.2.
@bdice
bdice force-pushed the cccl-3.2.x-compat branch from 338bc86 to 9eeb5ca Compare December 16, 2025 18:34
@bdice
bdice marked this pull request as ready for review December 16, 2025 20:28
@bdice
bdice requested review from a team as code owners December 16, 2025 20:28
@bdice
bdice requested review from miscco and wence- December 16, 2025 20:28
@bdice bdice mentioned this pull request Dec 16, 2025
4 of 7 tasks
Comment thread cpp/tests/cccl_32_conversion_bug.cpp Resolved

@vyasr vyasr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a live review with Bradley. I am comfortable with the implementation choices here and to the extent that some of them could be a bit cleaner I don't think it's worth too much effort since a lot of it is transitional code. I would like to see the tests cleaned up before merging if at all possible.

@bdice

bdice commented Dec 18, 2025 •

Copy link
Copy Markdown
Collaborator Author

I have tested this adequately to ensure that existing RAPIDS builds should not be broken by this PR. (Macro guards ensure there should be no change in behavior for CCCL 3.1.) I'll merge it now, which will make it easier to do the final rounds of CCCL 3.2 testing.

@bdice

bdice commented Dec 18, 2025

Copy link
Copy Markdown
Collaborator Author

/merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking change feature request New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants