Skip to content

Main merge release/26.06 03#1296

Merged
rgsl888prabhu merged 4 commits into
NVIDIA:mainfrom
rgsl888prabhu:main-merge-release/26.06_03
May 26, 2026
Merged

Main merge release/26.06 03#1296
rgsl888prabhu merged 4 commits into
NVIDIA:mainfrom
rgsl888prabhu:main-merge-release/26.06_03

Conversation

@rgsl888prabhu
Copy link
Copy Markdown
Collaborator

For #1293

nguidotti and others added 4 commits May 25, 2026 09:02
This PR cleans  NVIDIA#1252, so only the changes related to the OpenMP are present.

## Original description:

`run_concurrent` in `cpp/src/pdlp/solve.cu` now dispatches the barrier and dual simplex workers as `#pragma omp task` inside a `#pragma omp taskgroup` instead of raw `std::thread`. PDLP still runs synchronously on the dispatching thread.

MIP path (`omp_in_parallel()`): reuses the upstream `solve_mip` OMP team. Barrier and dual simplex now consume slots from the configured `num_cpu_threads` budget instead of spawning extra OS threads outside it.
Stand-alone LP path: stands up a local `#pragma omp parallel + single` with the right number of workers.

This PR also removes the confuscated `std::future` logic on the barrier on other PR.

Authors:
  - Nicolas L. Guidotti (https://github.com/nguidotti)
  - Akif ÇÖRDÜK (https://github.com/akifcorduk)

Approvers:
  - Alice Boucher (https://github.com/aliceb-nv)

URL: NVIDIA#1291
…1286)

(Claude-driven bug fix, potentially fixing the crash in https://github.com/NVIDIA/cuopt/actions/runs/26249434727/job/77262219725?pr=1103. The issue seems rare enough that I wasn't able to reliably reproduce locally to confirm the fix.)

`init_logger_t` reconfigures the process-global `cuopt::default_logger()` sinks under `g_guard_mutex`, but `CUOPT_LOG_*` calls go through that same global logger without holding the mutex. Three risky entry points existed:

- `call_batch_solve()` ran an OpenMP loop where every worker constructed its own `init_logger_t` inside `solve_lp()`. When workers finished at different times the last guard's destructor reset sinks while siblings were still logging — a likely source of rare `pure virtual method called -> std::terminate -> SIGABRT` aborts.
- `solve_lp()` and `solve_qp()` called `print_version_info()` (which uses `CUOPT_LOG_*`) before constructing their `init_logger_t`, so version logging ran through whatever global sink configuration happened to be active at that moment.

Fix:

- Construct an outer `init_logger_t` at the top of `call_batch_solve()` before any `CUOPT_LOG_*` and before the OpenMP region. Worker-local `init_logger_t` instances now ref-count onto it and never tear down global sinks.
- Reorder `solve_lp()` and `solve_qp()` so `init_logger_t` is constructed before `print_version_info()`.

Verified by running `test_parser_and_batch_solver` 300x in one process and 2x300 in concurrent processes without any abort signature.

The changes to `solve_lp` and `solve_qp` are incidental and probably not related to the original crash. They're preventing a potential similar issue if `solve_lp` or `solve_qp` are called from multiple threads.

Authors:
  - Miles Lubin (https://github.com/mlubin)

Approvers:
  - Rajesh Gandham (https://github.com/rg20)

URL: NVIDIA#1286
Switch the wheel build to link gRPC against OpenSSL 3.  This is good for modernization, and also necessary to enable FIPS compliance on many current OS platforms.

* install_protobuf_grpc.sh: on Rocky/RHEL 8, install epel-release and openssl3-devel. Rocky/RHEL 9 and Ubuntu/Debian already have openssl-devel at version 3 so use that.

* build_wheel_libcuopt.sh: Add libssl.so.3 / libcrypto.so.3 to the auditwheel exclude list so the wheel does not bundle them; runtime resolves to the host's OpenSSL 3, ensuring libcrypto and any FIPS provider (system or mounted) stay byte-version-matched.

Verified that the resulting binary links require only OPENSSL_3.0.0 symbol versions (159 refs, 0 newer), so the wheel is ABI-compatible with the cuopt container's Ubuntu 22.04 (libssl 3.0.2), RHEL/Rocky 9 (3.0.7), and any OpenSSL 3.x runtime.

Hosts must provide libssl.so.3 / libcrypto.so.3 (Ubuntu 22.04+, Debian 12+, RHEL/Rocky/Alma 9+, Fedora 36+ provides). Stock RHEL/Rocky 8 and Ubuntu 20.04 are not covered by this; users on those systems should either use the cuopt container image or install OpenSSL 3 from EPEL or a backport before pip-installing cuopt.

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

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

URL: NVIDIA#1188
@rgsl888prabhu rgsl888prabhu requested review from a team as code owners May 26, 2026 15:05
@rgsl888prabhu rgsl888prabhu self-assigned this May 26, 2026
@rgsl888prabhu rgsl888prabhu added non-breaking Introduces a non-breaking change improvement Improves an existing functionality labels May 26, 2026
@rgsl888prabhu rgsl888prabhu merged commit 706e0e9 into NVIDIA:main May 26, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants