Skip to content

Remove unused device_memory_resource includes - #22187

Merged
rapids-bot[bot] merged 2 commits into
NVIDIA:mainfrom
bdice:remove-unused-device-memory-resource-includes
Apr 20, 2026
Merged

rapids-bot[bot] merged 2 commits into
NVIDIA:mainfrom
bdice:remove-unused-device-memory-resource-includes

Conversation

@bdice

@bdice bdice commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

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.

Checklist

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

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
@bdice
bdice requested a review from a team as a code owner April 17, 2026 03:41
@bdice
bdice requested review from ttnghia and wence- April 17, 2026 03:41
@github-actions github-actions Bot added the libcudf Affects libcudf (C++/CUDA) code. label Apr 17, 2026
@bdice bdice changed the title Remove unused #include <rmm/mr/device_memory_resource.hpp> Remove unused device_memory_resource includes Apr 17, 2026
@bdice bdice added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Apr 17, 2026
@bdice

bdice commented Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit 048787d into NVIDIA:main Apr 20, 2026
323 of 329 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants