Repository navigation
Remove unused device_memory_resource includes - #22187
Merged
rapids-bot[bot] merged 2 commits intoApr 20, 2026
Merged
rapids-bot[bot] merged 2 commits into
rapids-bot[bot] merged 2 commits into
Conversation
Remove unused includes of rmm/mr/device_memory_resource.hpp from files that never reference the device_memory_resource type. Where a file uses device_async_resource_ref without an explicit include of the providing header, add #include <rmm/resource_ref.hpp>. Also remove an unused forward declaration of rmm::mr::device_memory_resource in optimized_unbounded_window.hpp. Part of rapidsai/rmm#2011
ttnghia
approved these changes
Apr 17, 2026
…e-memory-resource-includes
davidwendt
approved these changes
Apr 20, 2026
mhaseeb123
approved these changes
Apr 20, 2026
Contributor
Author
|
/merge |
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.
Description
Remove unused
#include <rmm/mr/device_memory_resource.hpp>from 34 files that never reference thedevice_memory_resourcetype. Where a file usesrmm::device_async_resource_refwithout an explicit include of<rmm/resource_ref.hpp>, add it. Also removes an unused forward declaration ofrmm::mr::device_memory_resourceinoptimized_unbounded_window.hpp.These are the non-breaking portions of the
rmm-cccl-migrationbranch (#21018) extracted to reduce the diff when the breaking RMM 26.06 changes land. Thedevice_memory_resourcebase class is being removed upstream (rapidsai/rmm#2011), and these files were including its header unnecessarily.Checklist