Repository navigation
Closed
Labels
feature requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Recently, RAPIDS/CCCL nightlies began failing due to a change in CCCL's memory resources. See NVIDIA/cccl#5313
Describe the solution you'd like
RMM should support CCCL's new memory resources, which are targeting CCCL 3.2. RAPIDS is currently using CCCL 3.1.
Current plan for adoption:
Allocation Interfaces
This list of tasks requires CCCL 3.1+, so we can ship these changes in 25.12.
- Build RMM w/ 3.1 via polyfill and
allocateupdates (Support building with CCCL 3.1.0 #2017) (25.10)
- Need to verify that all of RAPIDS builds with CCCL 3.1 with these changes in RMM, and ask Spark to do testing with the same pre-release of CCCL 3.1. The goal is to unblock adoption of CCCL 3.1 for RAPIDS.
- Then hopefully CCCL+RAPIDS CI should work.
- Update polyfill to new
allocatesignature (RMM internal refactoring) Use CCCL MR interface internally #2112 (25.12) - Refactor RAPIDS to use new
allocatesignature Migrate RAPIDS to CCCL MR interface (new allocation APIs) #2126 (25.12) - Deprecate old
allocatesignature Add deprecation warnings for legacy MR interface #2128 (25.12) - Remove deprecated legacy
allocateinterfaces Remove legacy memory resource interface in favor of CCCL interface #2150 (26.02)
Memory Resource Handling
This list of tasks requires CCCL 3.2+, so we will need to work on that migration in 26.02.
- Implement a bridge for pointer-based resources (26.02)
- Upgrade RAPIDS to use CCCL 3.2 (26.02)
- Require CCCL 3.2 in RMM: Remove LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE #2223 (26.04)
- Cleanup CCCL < 3.2: Remove compatibility code for CCCL earlier than 3.2 #2248 (26.04)
- Adopt
any_resourcein device-resource global mapping Store any_resource in device-resource global mapping #2200 (26.02) - Adopt
any_resourcein custom containers Store any_resource in device_buffer and device_uvector #2201 (26.02)- Containers storing RMM
resource_refs should instead storecuda::mr::any_resource
- Containers storing RMM
- Remove RMM
polyfillnamespace (26.04) - Convert adaptors into
cuda::shared_resource(staging, 26.06)- Refactor logging_resource_adaptor to shared CCCL MR design #2246
- Refactor pool_memory_resource to shared CCCL MR design #2258
- Refactor fixed_size_memory_resource and binning_memory_resource to shared CCCL MR design #2264
- Refactor tracking, statistics, and aligned resource adaptors to shared CCCL MR design #2265
- Return owning any_resource from set_per_device_resource_ref #2271
- Refactor arena_memory_resource to shared CCCL MR design #2272
- Refactor callback_memory_resource to shared CCCL MR design #2274
- Refactor prefetch_resource_adaptor to shared CCCL MR design #2275
- Refactor thread_safe_resource_adaptor to shared CCCL MR design #2276
- Refactor limiting_resource_adaptor to shared CCCL MR design #2277
- Refactor failure_callback_resource_adaptor to shared CCCL MR design #2278
- Remove
owning_wrapper(staging, 26.06) - Update base memory resources (staging, 26.06)
Remove device_memory_resource and legacy interface
- Migrate Python/Cython bindings from
device_memory_resource*toresource_ref/any_resource - Add conversion operator from
rmm::cuda_streamtocuda::stream_ref - Remove
device_memory_resourceinheritance from all C++ memory resources - Remove bridge infrastructure and
device_memory_resource - Delete
cccl_adaptors.hppand use raw CCCLresource_reftypes
Post-tasks
- Delete
is_resource_adaptor.hppand its test usages (no longer meaningful aftershared_resourceadoption)- Deprecation in 26.06: Deprecate is_resource_adaptor #2388
- Deletion in 26.08 will follow
- Use
cuda_mrorcuda_async_mrin tests rather thanget_current_device_resource_ref(see comment) - Check on equality docstrings after removing legacy code (see comment)
- Update documentation: remove references to
device_memory_resource,do_allocate, virtual dispatch from Doxygen and Python docstrings - Remove stale
#includedirectives for deleted headers (device_memory_resource.hpp,device_memory_resource_view.hpp,cccl_adaptors.hpp) -
Switch adaptors to be property-agnostic (e.g. support host accessible pools) and exposeUpstream& upstream_resource()- This isn't in scope for the core of this issue.
- Audit public symbols (see comment)
- Opened Hide memory resource impl symbols #2390 as followup.
- Enforce alignment requirements: opened Leaf MRs do not enforce alignment limits after device_memory_resource removal #2342 as followup.
- Migration guide for downstream consumers: opened Add migration guide for RMM 26.04 → 26.06 breaking changes #2345 / Add 26.06 migration guide #2344 as followup.
- Resource casting: Add resource_cast coverage for RMM resources #2386
- cuOpt follow-up for resource casting:
- RAFT follow-up for resource casting:
- https://github.com/rapidsai/raft/pull/2996/changes#r3117043609
- https://github.com/rapidsai/raft/pull/2996/changes#r3117055885
- Restore resource_cast guard for RAFT memory pool NVIDIA/raft#3020
- Address CodeRabbit feedback from Merge staging into main: CCCL memory resource migration #2361
- See Remove unnecessary benchmark resource swap #2398, Share simulated memory resource state #2399, Honor simulated memory resource alignment #2400, Synchronize CUDA async deallocate_sync #2401, Forward failure callback alignment #2402, Route zero-byte binning allocations through bin resources #2403, Avoid tracking counter underflow #2404, Use async APIs in random MR ref tests #2405.
Update RAPIDS libraries
The merge train 🚂🚃🚃 is tracked in #2364.
Tree 1: Structured Data Processing
- Migrate RMM usage to CCCL MR design NVIDIA/cudf#22008
- Migrate RMM usage to CCCL MR design NVIDIA/cuCascade#98
- Migrate RMM usage to CCCL MR design rapidsmpf#940
- build(cudf): Migrate RMM usage to CCCL MR design facebookincubator/velox#17178
- Migrate RMM usage to CCCL MR design NVIDIA/cudf-spark-jni#4468
Tree 2: Vector Search, ML, Graph, Optimization
- Migrate RMM usage to CCCL MR design ucxx#636
- Migrate RMM usage to CCCL MR design NVIDIA/raft#2996
- Migrate RMM usage to CCCL MR design NVIDIA/cuopt#1035
- Migrate RMM usage to CCCL MR design NVIDIA/cuvs#1990
- Migrate RMM usage to CCCL MR design NVIDIA/cuml#7951
- Migrate RMM usage to CCCL MR design cugraph#5483
- Migrate RMM usage to CCCL MR design dmlc/xgboost#12141
Metadata
Metadata
Assignees
Labels
feature requestNew feature or request
Type
Projects
- StatusShow more project fieldsDone
Activity
Support building with CCCL 3.1.0 (#2017)
bdice commentedon Sep 30, 2025
CCCL 3.1.0 + RAPIDS 25.10CI is working, and RAPIDS is nearly ready to adopt the new CCCL version in 25.12. This will complete task (1) above.Update to CCCL v3.1.0 (#906)
[-][FEA] Support experimental changes from CCCL 3.1.0+[/-][+][FEA] Support memory resources from CCCL 3.1.0+[/+]Require CCCL >=3.1.0 and add CMake option to disable legacy MR interf…
Use CCCL MR interface internally (#2112)
Add patch for FAISS memory resources (#1477)
Add deprecation warnings for legacy MR interface (#2128)
Migrate device memory resource headers (#2140)
Remove legacy memory resource interface in favor of CCCL interface (#…
24 remaining items
Migrate RMM usage to CCCL MR design (#2996)
Migrate RMM usage to CCCL MR design (#22008)
Migrate RMM usage to CCCL MR design (#4468)
build(cudf): Migrate RMM usage to CCCL MR design (#17178)
Remove unused device_memory_resource includes (NVIDIA#22187)
Migrate RMM usage to CCCL MR design (NVIDIA#22008)
Add resource_cast coverage for RMM resources (#2386)
Deprecate is_resource_adaptor (#2388)
Use explicit resources in memory resource tests (#2389)
Remove deprecated is_resource_adaptor (#2420)
build(cudf): Migrate RMM usage to CCCL MR design (facebookincubator#1…
Add patch for FAISS memory resources (NVIDIA#1477)