Skip to content

Fix nvbench handling of memory-resource objects - #22257

Merged
rockhowse merged 2 commits into
NVIDIA:mainfrom
davidwendt:fix-nvbench-mr
Apr 23, 2026
Merged

rockhowse merged 2 commits into
NVIDIA:mainfrom
davidwendt:fix-nvbench-mr

Conversation

@davidwendt

Copy link
Copy Markdown
Contributor

Description

Adds a call to rmm::mr::reset_current_device_resource() in the nvbench_base_fixture destructor so RMM can cleanup a static map before the process exists main().

Checklist

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

@davidwendt davidwendt self-assigned this Apr 22, 2026
@davidwendt
davidwendt requested a review from a team as a code owner April 22, 2026 21:42
@davidwendt
davidwendt requested review from devavret and wence- April 22, 2026 21:42
@davidwendt davidwendt added bug Something isn't working 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change labels Apr 22, 2026
@davidwendt
davidwendt requested review from bdice and vyasr April 22, 2026 21:43

@bdice bdice left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks. I would appreciate if you can file an RMM issue with the gdb info you've collected so far. We will need a proper solution for this.

@vyasr vyasr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! Bradley and I discussed and hopefully have a long term solution ready for rmm.

@rockhowse
rockhowse merged commit 61a5697 into NVIDIA:main Apr 23, 2026
126 of 129 checks passed
@davidwendt
davidwendt deleted the fix-nvbench-mr branch April 23, 2026 10:38
rapids-bot Bot pushed a commit that referenced this pull request May 1, 2026
Follow on to #22257 to reset the memory resource used by gtests before exiting the `main()` of the process. This can help prevent a potential segfault and even if that is fixed can possibly prevent a memory leak making it easier to detect those in future debugging efforts.

Authors:
  - David Wendt (https://github.com/davidwendt)

Approvers:
  - Yunsong Wang (https://github.com/PointKernel)
  - Muhammad Haseeb (https://github.com/mhaseeb123)

URL: #22267
vyasr pushed a commit to vyasr/cudf that referenced this pull request May 4, 2026
…22267)

Follow on to NVIDIA#22257 to reset the memory resource used by gtests before exiting the `main()` of the process. This can help prevent a potential segfault and even if that is fixed can possibly prevent a memory leak making it easier to detect those in future debugging efforts.

Authors:
  - David Wendt (https://github.com/davidwendt)

Approvers:
  - Yunsong Wang (https://github.com/PointKernel)
  - Muhammad Haseeb (https://github.com/mhaseeb123)

URL: NVIDIA#22267
shrshi pushed a commit to shrshi/cudf that referenced this pull request May 12, 2026
## Description
Adds a call to `rmm::mr::reset_current_device_resource()` in the
`nvbench_base_fixture` destructor so RMM can cleanup a static map before
the process exists `main()`.

## Checklist
- [x] I am familiar with the [Contributing
Guidelines](https://github.com/rapidsai/cudf/blob/HEAD/CONTRIBUTING.md).
- [x] New or existing tests cover these changes.
- [x] The documentation is up to date with these changes.

Admin merge per eng request
shrshi pushed a commit to shrshi/cudf that referenced this pull request May 12, 2026
…22267)

Follow on to NVIDIA#22257 to reset the memory resource used by gtests before exiting the `main()` of the process. This can help prevent a potential segfault and even if that is fixed can possibly prevent a memory leak making it easier to detect those in future debugging efforts.

Authors:
  - David Wendt (https://github.com/davidwendt)

Approvers:
  - Yunsong Wang (https://github.com/PointKernel)
  - Muhammad Haseeb (https://github.com/mhaseeb123)

URL: NVIDIA#22267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team bug Something isn't working 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