Repository navigation
Forward-merge 26.06 migration guide (#2344) - #2456
Conversation
Adds an RMM 26.06 migration guide covering library API changes and memory resource migration guidance. Closes rapidsai#2345
|
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. |
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe 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. ChangesCCCL memory-resource documentation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (6)
README.mddocs/migration_guide_2606.mddocs/user_guide/guide.mdpython/REVIEW_GUIDELINES.mdpython/rmm/rmm/allocators/numba.pypython/rmm/rmm/pylibrmm/stream.pyx
| 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>` |
There was a problem hiding this comment.
📐 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.
| 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
| * `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 |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major
🧩 Analysis chain
🏁 Script executed:
sed -n '45,70p' README.md
printf '\n---\n'
sed -n '790,835p' README.mdRepository: rapidsai/rmm
Length of output: 2485
🏁 Script executed:
sed -n '45,70p' README.md
printf '\n---\n'
sed -n '790,835p' README.mdRepository: 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.
|
This is just a forward-merge so I'll merge when CI passes. |
Description
This is a forward-merge of #2344 to
mainwith conflicts resolved.Checklist