Skip to content

Remove owning_wrapper - #2286

Merged
bdice merged 4 commits into
rapidsai:stagingfrom
bdice:remove-owning-wrapper
Mar 11, 2026
Merged

bdice merged 4 commits into
rapidsai:stagingfrom
bdice:remove-owning-wrapper

Conversation

@bdice

@bdice bdice commented Mar 11, 2026

Copy link
Copy Markdown
Collaborator

Description

Closes #2285

Removes owning_wrapper and make_owning_wrapper, which are no longer necessary after the cuda::shared_resource adaptor conversion in #2011. All adaptors now manage upstream lifetime directly via any_resource, so the problem owning_wrapper solved no longer exists.

  • Delete cpp/include/rmm/mr/owning_wrapper.hpp
  • Remove stale #includes from 4 files (3 benchmarks + mr_ref_test.hpp)
  • Remove owning_wrapper from the typed test suite in adaptor_tests.cpp

Checklist

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

@bdice
bdice requested a review from a team as a code owner March 11, 2026 00:44
@bdice
bdice requested review from davidwendt and wence- and removed request for a team March 11, 2026 00:44
@bdice bdice mentioned this pull request Mar 11, 2026
51 tasks done
@bdice bdice added breaking Breaking change improvement Improvement / enhancement to an existing function labels Mar 11, 2026
@bdice bdice self-assigned this Mar 11, 2026
@bdice bdice moved this to In Progress in RMM Project Board Mar 11, 2026
@bdice
bdice force-pushed the remove-owning-wrapper branch from d705a62 to cd0b516 Compare March 11, 2026 23:17
@bdice
bdice merged commit fbaf114 into rapidsai:staging Mar 11, 2026
79 of 82 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in RMM Project Board Mar 11, 2026
rapids-bot Bot pushed a commit to NVIDIA/cuopt that referenced this pull request Apr 27, 2026
## Summary
- `rmm::mr::owning_wrapper` / `make_owning_wrapper` were removed in [rapidsai/rmm#2286](rapidsai/rmm#2286). `pool_memory_resource` now takes the upstream by value via `cuda::mr::any_resource` and manages its lifetime itself — construct directly, matching the pattern already used in `cpp/tests/utilities/base_fixture.hpp:39`.
- Enable `BUILD_LP_BENCHMARKS` and `BUILD_MIP_BENCHMARKS` in the libcuopt conda build so `solve_LP` (`run_pdlp.cu`) and `solve_MIP` (`run_mip.cpp`) compile on every PR. The targets have no `install(TARGETS ...)` directive, so conda and wheel artifacts are unchanged — this is compile-only coverage to catch upstream API breakage.

## Changes
- `benchmarks/linear_programming/cuopt/benchmark_helper.hpp` — drop `owning_wrapper.hpp` include; `make_async()` / `make_pool()` return by value.
- `benchmarks/linear_programming/cuopt/run_pdlp.cu` — `set_current_device_resource(memory_resource.get())` → `set_current_device_resource(memory_resource)` (pool is now a value, not a `shared_ptr`).
- `conda/recipes/libcuopt/recipe.yaml` — add `-DBUILD_LP_BENCHMARKS=ON -DBUILD_MIP_BENCHMARKS=ON` to the existing `--cmake-args`.

## CI cost
- Adds ~3–5 min cold per matrix entry (driven by the one `.cu` TU × `--allgpuarch`); ~seconds warm with sccache.
- No new packaged binaries.

## Test plan
- [ ] `conda-cpp-build` job compiles `solve_LP` and `solve_MIP` successfully.
- [ ] No new files appear in `libcuopt` / `libcuopt-tests` conda packages (verify `tests: package_contents` still matches).
- [ ] Existing `conda-cpp-tests`, wheel builds, and other jobs remain green.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Authors:
  - Ramakrishnap (https://github.com/rgsl888prabhu)

Approvers:
  - Trevor McKay (https://github.com/tmckayus)
  - Hugo Linsenmaier (https://github.com/hlinsen)

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

Labels

breaking Breaking change improvement Improvement / enhancement to an existing function

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants