Repository navigation
Conversation
51 tasks done
ttnghia
approved these changes
Jan 13, 2026
Deprecate the pointer-based `set_current_device_resource(device_memory_resource*)` wrapper and update all call sites to use `set_current_device_resource_ref()` instead. This is part of the RMM CCCL 3.2 migration to use type-erased `any_resource` and `resource_ref` types instead of raw pointers. See rapidsai/rmm#2011 for details. Updated files: - Benchmarks: nvbench_fixture.hpp - Examples: 11 example files across basic, billion_rows, hybrid_scan_io, nested_types, parquet_inspect, parquet_io, string_transforms, and strings - Tests: testing_main.hpp, large_strings_fixture.cpp - JNI: RmmJni.cpp
mhaseeb123
approved these changes
Jan 14, 2026
There was a problem hiding this comment.
Pull request overview
This PR deprecates the pointer-based set_current_device_resource(device_memory_resource*) API in favor of the reference-based set_current_device_resource_ref() API. This is part of the RMM CCCL 3.2 migration to use type-erased any_resource and resource_ref types instead of raw pointers.
Changes:
- Added deprecation attribute to the pointer-based
set_current_device_resource()wrapper function - Updated
get_current_device_resource_ref()to call RMM's ref-based implementation - Migrated all call sites across Java JNI, tests, examples, and benchmarks to use the new ref-based API
- Updated member variables in
chunked_parquet_readerto usecuda::mr::any_resource<cuda::mr::device_accessible>instead ofrmm::device_async_resource_ref
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| cpp/include/cudf/utilities/memory_resource.hpp | Added deprecation attribute to pointer-based API, updated get function to use RMM's ref implementation, added pragma directives to suppress deprecation warnings |
| cpp/include/cudf/io/experimental/deletion_vectors.hpp | Updated member variables to use cuda::mr::any_resource type, added include for cuda/memory_resource |
| java/src/main/native/src/RmmJni.cpp | Updated JNI call to use ref-based API |
| cpp/include/cudf_test/testing_main.hpp | Updated test infrastructure to use ref-based API |
| cpp/tests/large_strings/large_strings_fixture.cpp | Updated test fixture to use ref-based API |
| cpp/examples/strings/common.hpp | Updated example to use ref-based API |
| cpp/examples/string_transforms/common.hpp | Updated example to use ref-based API |
| cpp/examples/parquet_io/parquet_io_multithreaded.cpp | Updated example to use ref-based API with cudf namespace |
| cpp/examples/parquet_io/parquet_io.cpp | Updated example to use ref-based API |
| cpp/examples/parquet_inspect/parquet_inspect.cpp | Updated example to use ref-based API |
| cpp/examples/nested_types/deduplication.cpp | Updated example to use ref-based API |
| cpp/examples/hybrid_scan_io/hybrid_scan_io.cpp | Updated example to use ref-based API with cudf namespace |
| cpp/examples/billion_rows/brc_pipeline.cpp | Updated example to use ref-based API with cudf namespace |
| cpp/examples/billion_rows/brc_chunks.cpp | Updated example to use ref-based API with cudf namespace |
| cpp/examples/billion_rows/brc.cpp | Updated example to use ref-based API with cudf namespace |
| cpp/examples/basic/src/process_csv.cpp | Updated example to use ref-based API |
| cpp/benchmarks/fixture/nvbench_fixture.hpp | Updated benchmark fixture to use ref-based API |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
There seems more work todo: |
3 tasks done
Contributor
Author
|
Superseded by #22008, which removes |
3 tasks done
rapids-bot Bot
pushed a commit
that referenced
this pull request
Apr 20, 2026
Remove unused `#include <rmm/mr/device_memory_resource.hpp>` from 34 files that never reference the `device_memory_resource` type. Where a file uses `rmm::device_async_resource_ref` without an explicit include of `<rmm/resource_ref.hpp>`, add it. Also removes an unused forward declaration of `rmm::mr::device_memory_resource` in `optimized_unbounded_window.hpp`. These are the non-breaking portions of the `rmm-cccl-migration` branch (#21018) extracted to reduce the diff when the breaking RMM 26.06 changes land. The `device_memory_resource` base class is being removed upstream (rapidsai/rmm#2011), and these files were including its header unnecessarily. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Nghia Truong (https://github.com/ttnghia) - David Wendt (https://github.com/davidwendt) - Muhammad Haseeb (https://github.com/mhaseeb123) URL: #22187
shrshi
pushed a commit
to shrshi/cudf
that referenced
this pull request
May 12, 2026
Remove unused `#include <rmm/mr/device_memory_resource.hpp>` from 34 files that never reference the `device_memory_resource` type. Where a file uses `rmm::device_async_resource_ref` without an explicit include of `<rmm/resource_ref.hpp>`, add it. Also removes an unused forward declaration of `rmm::mr::device_memory_resource` in `optimized_unbounded_window.hpp`. These are the non-breaking portions of the `rmm-cccl-migration` branch (NVIDIA#21018) extracted to reduce the diff when the breaking RMM 26.06 changes land. The `device_memory_resource` base class is being removed upstream (rapidsai/rmm#2011), and these files were including its header unnecessarily. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Nghia Truong (https://github.com/ttnghia) - David Wendt (https://github.com/davidwendt) - Muhammad Haseeb (https://github.com/mhaseeb123) URL: NVIDIA#22187
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
set_current_device_resource(device_memory_resource*)wrapper with[[deprecated]]attributeset_current_device_resource_ref()insteadThis is part of the RMM CCCL 3.2 migration to use type-erased
any_resourceandresource_reftypes instead of raw pointers. See rapidsai/rmm#2011 for tracking.