Skip to content

Migrate RMM usage to CCCL MR design#12141

Merged
trivialfis merged 3 commits into
dmlc:masterfrom
bdice:rmm-cccl-migration
Apr 24, 2026
Merged

Migrate RMM usage to CCCL MR design#12141
trivialfis merged 3 commits into
dmlc:masterfrom
bdice:rmm-cccl-migration

Conversation

@bdice
Copy link
Copy Markdown
Contributor

@bdice bdice commented Apr 4, 2026

Summary

Part of rapidsai/rmm#2011.
Depends on rapidsai/rmm#2361.

This updates tests/cpp/helpers.cc for API changes in RMM to the new CCCL memory resource design. The pool_memory_resource is no longer templated, set_per_device_resource is replaced by set_per_device_resource_ref, and the pool now holds its upstream via owning any_resource so a separate cuda_memory_resource vector is no longer needed. Old RMM code paths are preserved behind version guards for backwards compatibility.

RMM 26.06 de-templated pool_memory_resource and replaced
set_per_device_resource with set_per_device_resource_ref. The pool now
holds its upstream via any_resource (owning), so a separate
cuda_memory_resource vector is no longer needed in the new code path.
@jakirkham
Copy link
Copy Markdown
Contributor

cc @hcho3 @trivialfis

@bdice bdice marked this pull request as ready for review April 23, 2026 18:14
Copy link
Copy Markdown
Collaborator

@hcho3 hcho3 left a comment

Choose a reason for hiding this comment

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

LGTM. The #ifdef's looks reasonable: it's restricted to a single source file (helpers.cc)

@trivialfis trivialfis merged commit e0d3dfd into dmlc:master Apr 24, 2026
80 checks passed
@jakirkham
Copy link
Copy Markdown
Contributor

Thanks Bradley and Hyunsu! 🙏

Given this is just in the tests, do we need a patch for building packages or is that unneeded?

@jakirkham
Copy link
Copy Markdown
Contributor

Also thanks Jiaming! 🙏

Sorry for missing you before 😞

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants