Skip to content

Forward-merge 26.06 migration guide (#2344) - #2456

Merged
bdice merged 1 commit into
rapidsai:mainfrom
bdice:forward-merge-26.06
Jun 26, 2026
Merged

bdice merged 1 commit into
rapidsai:mainfrom
bdice:forward-merge-26.06

Conversation

@bdice

@bdice bdice commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Description

This is a forward-merge of #2344 to main with conflicts resolved.

Checklist

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

Adds an RMM 26.06 migration guide covering library API changes and memory resource migration guidance.

Closes rapidsai#2345
@copy-pr-bot

copy-pr-bot Bot commented Jun 26, 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 marked this pull request as ready for review June 26, 2026 15:38
@bdice
bdice requested a review from a team as a code owner June 26, 2026 15:38
@bdice
bdice requested a review from vyasr June 26, 2026 15:38
@bdice bdice added doc Documentation non-breaking Non-breaking change labels Jun 26, 2026
@bdice bdice moved this to In Progress in RMM Project Board Jun 26, 2026
@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Updated the user guide and README with refreshed installation, build, and testing guidance.
    • Expanded C++ and Python documentation to reflect the latest memory resource usage patterns and examples.
    • Added a detailed migration guide for upgrading to the newer memory resource model.
    • Clarified integration steps and terminology for CuPy, Numba-CUDA, and PyTorch.

Walkthrough

The PR updates README, user guide, and migration documentation for the newer CCCL memory-resource model, and changes Python-facing references from Numba to Numba-CUDA in review guidance and allocator-related docs.

Changes

CCCL memory-resource documentation

Layer / File(s) Summary
Build and setup
README.md
Updates compiler/CUDA prerequisites, source-build steps, test directory instructions, and third-party dependency caching notes.
C++ memory-resource docs
README.md
Rewrites the C++ README sections for the new memory-resource model, including default/per-device APIs, multi-device rules, examples, Thrust support, and logging adaptor text.
Migration guide
docs/migration_guide_2606.md
Adds the 26.06 migration guide covering CCCL-native memory-resource breaking changes, custom-resource migration, pointer/ref conversions, and Cython updates.
Python usage docs
README.md, docs/user_guide/guide.md
Reworks the Python README and user guide around DeviceBuffer, current memory-resource setup, third-party integrations, and the Python ownership example.
Python terminology updates
python/REVIEW_GUIDELINES.md, python/rmm/rmm/allocators/numba.py, python/rmm/rmm/pylibrmm/stream.pyx
Updates Python review guidance, allocator comments, and the Stream docstring to use Numba-CUDA terminology and current-memory-manager references.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • rapidsai/rmm#2244: Also updates python/REVIEW_GUIDELINES.md to use Numba-CUDA terminology in the Python review guidance.
  • rapidsai/rmm#2344: Also adds the docs/migration_guide_2606.md migration guide for the CCCL-native memory-resource transition.
  • rapidsai/rmm#2387: Also updates public memory-resource documentation toward the newer set_*_resource / reset_*_resource patterns.

Suggested labels

improvement

Suggested reviewers

  • galipremsagar
  • davidwendt
  • vyasr
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly reflects the main change: a forward merge of the 26.06 migration guide.
Description check ✅ Passed The description is directly related to the changeset and correctly states it is a forward-merge with conflicts resolved.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/migration_guide_2606.md`:
- Around line 161-179: Clarify the summary in this migration note by stating
that only the Upstream template parameter was removed from the listed resource
and adaptor types, since failure_callback_resource_adaptor still remains
templated on ExceptionType. Update the overview sentence and any surrounding
wording in the migration guide to reflect that these APIs are no longer
parameterized by Upstream, rather than saying they are all non-template classes.

In `@README.md`:
- Around line 55-61: The CUDA prerequisite list is inconsistent between the nvcc
and CUDA minimums in README.md. Update the requirement text so the `nvcc`
version and the CUDA floor match, using the same baseline in the prerequisites
section near the `gcc`, `nvcc`, and `cmake` entries and the following CUDA/GPU
requirements line.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: c255eddc-e2ae-40c2-8b55-b3764890d026

📥 Commits

Reviewing files that changed from the base of the PR and between 7f2d42d and 83a6d90.

📒 Files selected for processing (6)
  • README.md
  • docs/migration_guide_2606.md
  • docs/user_guide/guide.md
  • python/REVIEW_GUIDELINES.md
  • python/rmm/rmm/allocators/numba.py
  • python/rmm/rmm/pylibrmm/stream.pyx

Comment on lines +161 to +179
Every resource and adaptor that previously took an `Upstream` template parameter
is now a non-template class. The upstream is accepted as a
`cuda::mr::any_resource<cuda::mr::device_accessible>` instead of a typed pointer.

Remove the `Upstream` template parameter from these type names:

- `pool_memory_resource<Upstream>` → `pool_memory_resource`
- `arena_memory_resource<Upstream>` → `arena_memory_resource`
- `fixed_size_memory_resource<Upstream>` → `fixed_size_memory_resource`
- `binning_memory_resource<Upstream>` → `binning_memory_resource`
- `logging_resource_adaptor<Upstream>` → `logging_resource_adaptor`
- `tracking_resource_adaptor<Upstream>` → `tracking_resource_adaptor`
- `statistics_resource_adaptor<Upstream>` → `statistics_resource_adaptor`
- `aligned_resource_adaptor<Upstream>` → `aligned_resource_adaptor`
- `limiting_resource_adaptor<Upstream>` → `limiting_resource_adaptor`
- `thread_safe_resource_adaptor<Upstream>` → `thread_safe_resource_adaptor`
- `prefetch_resource_adaptor<Upstream>` → `prefetch_resource_adaptor`
- `failure_callback_resource_adaptor<Upstream, ExceptionType>` →
`failure_callback_resource_adaptor<ExceptionType>`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Clarify the template-removal summary.

failure_callback_resource_adaptor<ExceptionType> still has a template parameter, so “now a non-template class” is too broad. Rephrase this as removal of the Upstream parameter, not removal of templating entirely.

📝 Suggested wording
- Every resource and adaptor that previously took an `Upstream` template parameter is now a non-template class.
+ Every resource and adaptor that previously took an `Upstream` template parameter now accepts upstream resources by value; most affected types are no longer templated on `Upstream`, and `failure_callback_resource_adaptor` keeps only its `ExceptionType` parameter.

As per path instructions, docs/**/*: accuracy, consistency, clarity, and completeness should match the underlying API.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Every resource and adaptor that previously took an `Upstream` template parameter
is now a non-template class. The upstream is accepted as a
`cuda::mr::any_resource<cuda::mr::device_accessible>` instead of a typed pointer.
Remove the `Upstream` template parameter from these type names:
- `pool_memory_resource<Upstream>` → `pool_memory_resource`
- `arena_memory_resource<Upstream>` → `arena_memory_resource`
- `fixed_size_memory_resource<Upstream>` → `fixed_size_memory_resource`
- `binning_memory_resource<Upstream>` → `binning_memory_resource`
- `logging_resource_adaptor<Upstream>` → `logging_resource_adaptor`
- `tracking_resource_adaptor<Upstream>` → `tracking_resource_adaptor`
- `statistics_resource_adaptor<Upstream>` → `statistics_resource_adaptor`
- `aligned_resource_adaptor<Upstream>` → `aligned_resource_adaptor`
- `limiting_resource_adaptor<Upstream>` → `limiting_resource_adaptor`
- `thread_safe_resource_adaptor<Upstream>` → `thread_safe_resource_adaptor`
- `prefetch_resource_adaptor<Upstream>` → `prefetch_resource_adaptor`
- `failure_callback_resource_adaptor<Upstream, ExceptionType>` →
`failure_callback_resource_adaptor<ExceptionType>`
Every resource and adaptor that previously took an `Upstream` template parameter now accepts upstream resources by value; most affected types are no longer templated on `Upstream`, and `failure_callback_resource_adaptor` keeps only its `ExceptionType` parameter.
Remove the `Upstream` template parameter from these type names:
- `pool_memory_resource<Upstream>` → `pool_memory_resource`
- `arena_memory_resource<Upstream>` → `arena_memory_resource`
- `fixed_size_memory_resource<Upstream>` → `fixed_size_memory_resource`
- `binning_memory_resource<Upstream>` → `binning_memory_resource`
- `logging_resource_adaptor<Upstream>` → `logging_resource_adaptor`
- `tracking_resource_adaptor<Upstream>` → `tracking_resource_adaptor`
- `statistics_resource_adaptor<Upstream>` → `statistics_resource_adaptor`
- `aligned_resource_adaptor<Upstream>` → `aligned_resource_adaptor`
- `limiting_resource_adaptor<Upstream>` → `limiting_resource_adaptor`
- `thread_safe_resource_adaptor<Upstream>` → `thread_safe_resource_adaptor`
- `prefetch_resource_adaptor<Upstream>` → `prefetch_resource_adaptor`
- `failure_callback_resource_adaptor<Upstream, ExceptionType>` →
`failure_callback_resource_adaptor<ExceptionType>`
🧰 Tools
🪛 LanguageTool

[grammar] ~161-~161: Ensure spelling is correct
Context: ...ources and Adaptors Every resource and adaptor that previously took an Upstream temp...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/migration_guide_2606.md` around lines 161 - 179, Clarify the summary in
this migration note by stating that only the Upstream template parameter was
removed from the listed resource and adaptor types, since
failure_callback_resource_adaptor still remains templated on ExceptionType.
Update the overview sentence and any surrounding wording in the migration guide
to reflect that these APIs are no longer parameterized by Upstream, rather than
saying they are all non-template classes.

Source: Path instructions

Comment thread README.md
Comment on lines +55 to +61
* `gcc` version 13.3+
* `nvcc` version 12.9+
* `cmake` version 4.0+

CUDA/GPU requirements:

* CUDA 12.0+. You can obtain CUDA from
* CUDA 12.2+. You can obtain CUDA from

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

sed -n '45,70p' README.md
printf '\n---\n'
sed -n '790,835p' README.md

Repository: rapidsai/rmm

Length of output: 2485


🏁 Script executed:

sed -n '45,70p' README.md
printf '\n---\n'
sed -n '790,835p' README.md

Repository: rapidsai/rmm

Length of output: 2485


Make the CUDA prerequisites consistent.

nvcc 12.9+ conflicts with the next line’s CUDA 12.2+ floor and excludes supported 12.2–12.8 setups. Either lower the nvcc minimum or raise the CUDA requirement so both lines match.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` around lines 55 - 61, The CUDA prerequisite list is inconsistent
between the nvcc and CUDA minimums in README.md. Update the requirement text so
the `nvcc` version and the CUDA floor match, using the same baseline in the
prerequisites section near the `gcc`, `nvcc`, and `cmake` entries and the
following CUDA/GPU requirements line.

@bdice

bdice commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

This is just a forward-merge so I'll merge when CI passes.

@bdice
bdice merged commit 5ba0faa into rapidsai:main Jun 26, 2026
73 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in RMM Project Board Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Documentation non-breaking Non-breaking change

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant