Repository navigation
v0.2.0
PDHCG-II v0.2.0
Major release introducing multi-GPU distributed solving, cuSPARSE SpMVOp backend, and a Jacobi diagonal preconditioner for the inner subproblem.
What's New in v0.2.0
Multi-GPU Distributed Solving
Solve large-scale QPs across multiple GPUs via MPI + NCCL. Build with -DPDHCG_COMPILE_DISTRIBUTED=ON and launch with mpirun. New CLI options: --grid_size, --partition_method, --permute_method, --permute_block_size. Single- and multi-GPU code paths share the same binary, dispatched automatically by MPI world size.
Strong-scaling on large LASSO problems (solving time in seconds, tolerance 1e-6):
| Problem | 1 GPU | 2 GPUs | 4 GPUs | 8 GPUs |
|---|---|---|---|---|
| SLS | 1.96 | 1.10 | 0.56 | 0.50 |
| rcv1_test | 2.37 | 1.48 | 1.06 | 0.81 |
| avazu-site.tr | 1337.05 | 953.02 | 547.28 | 376.90 |
| avazu-app | 217.70 | 116.92 | 65.86 | 46.30 |
| avazu-site | 1642.69 | 993.62 | 765.46 | 503.99 |
| kddb2010_test | 11.59 | 11.18 | 8.79 | 7.07 |
| kdda2010_test | 9.90 | 8.50 | 6.77 | 5.61 |
| kddb2010_train | 703.36 | 466.28 | 317.69 | 233.44 |
| kdda2010_train | 341.16 | 237.19 | 167.62 | 124.89 |
cuSPARSE SpMVOp Backend
On CUDA ≥ 13.0, sparse matrix-vector multiplications switch to cusparseSpMVOp for higher throughput, with transparent fallback to the standard SpMV API on CUDA 12.x — no manual configuration needed.
Measured on the Mittelmann QP Benchmark, the new SpMVOp backend delivers an average ~1.23× speedup over the previous SpMV-based path (new : old ≈ 1 : 1.23).
Jacobi Diagonal Preconditioner
Enabled by default for the inner solver, improving convergence of subproblems on ill-conditioned QPs. Disable via CLI flag --no_diag_precond or Python parameter DiagJacobiPrecond=False.
Maros–Mészáros non-diagonal QP set (tolerance 1e-6, time limit 1000s):
| Metric | w/o Jacobi | w/ Jacobi |
|---|---|---|
| Solved | 78 / 79 | 79 / 79 |
| Arithmetic mean wall (s) | 26.006 | 10.217 |
| SGM10 wall (s) | 6.150 | 4.495 |
| SGM10 outer iterations | 6495 | 5640 |
Other Improvements
- Box-only convex QPs are supported via a dummy-variable reformulation.
- Fixed result construction when the problem reduces to an LP.
- Documentation: Python parameters table, distributed CLI examples, expanded C type reference.
Limitations
The Python wheel (pip install pdhcg) supports single-GPU solving only. For multi-GPU, build the C++ executable with -DPDHCG_COMPILE_DISTRIBUTED=ON and launch with mpirun.