Repository navigation
Remove owning_wrapper - #2286
Merged
Merged
Conversation
bdice
requested review from
davidwendt and
wence-
and removed request for
a team
March 11, 2026 00:44
51 tasks done
davidwendt
reviewed
Mar 11, 2026
davidwendt
reviewed
Mar 11, 2026
davidwendt
approved these changes
Mar 11, 2026
Co-authored-by: David Wendt <[email protected]>
bdice
force-pushed
the
remove-owning-wrapper
branch
from
March 11, 2026 23:17
d705a62 to
cd0b516
Compare
3 tasks done
3 tasks done
3 tasks
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
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
Closes #2285
Removes
owning_wrapperandmake_owning_wrapper, which are no longer necessary after thecuda::shared_resourceadaptor conversion in #2011. All adaptors now manage upstream lifetime directly viaany_resource, so the problemowning_wrappersolved no longer exists.cpp/include/rmm/mr/owning_wrapper.hpp#includes from 4 files (3 benchmarks +mr_ref_test.hpp)owning_wrapperfrom the typed test suite inadaptor_tests.cppChecklist