Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## latest #3719 +/- ##
==========================================
+ Coverage 76.03% 76.15% +0.12%
==========================================
Files 467 467
Lines 116750 116789 +39
Branches 18176 18144 -32
==========================================
+ Hits 88768 88946 +178
+ Misses 27742 27603 -139
Partials 240 240 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
lucascolley
left a comment
There was a problem hiding this comment.
what about:
HiGHS/highs/ipm/ipx/sparse_utils.h
Lines 21 to 24 in f3f113d
HiGHS/highs/ipm/basiclu/lu_dfs.c
Lines 56 to 58 in f3f113d
HiGHS/highs/ipm/hipo/auxiliary/Auxiliary.cpp
Line 237 in f3f113d
HiGHS/highs/ipm/hipo/factorhighs/Analyse.cpp
Line 159 in f3f113d
|
I rewrote the functions in HiPO and IPX to use HiGHS data structures and so that they are not too similar to the references that they mention. I also changed the comments in various places where references are mentioned, to clarify that the code follows the algorithms developed in those references and does not copy them. |
The elimination tree and row factorisation adapted from QDLDL (Apache-2.0) were compiled into libhighs in every build, including HIPO=OFF. They are now the extras feature in extern/qdldl, wired like amd/metis/rcm and required by the feature set. UpLookingSolver keeps regularisation, time-limit checks and solves in core. Notices gain the QDLDL copyright line.
Move QDLDL-derived up-looking kernels to the extras library
Description
highs/pdlp/cupdlp/cupdlp_cs.candcupdlp_cs.hare adapted from Tim Davis's CSparse, which is LGPL-2.1-or-later. Upstream cuPDLP-C now labels them as such. Downstream distributions that need permissively licensed bundled code, such as SciPy, can't ship them.They had only one use:
csc2csr(and the unusedcsr2csc) incupdlp_utils.c. These transposed the constraint matrix so that cuPDLP-C holds both a CSC and a CSR copy.Changes:
CupdlpWrapper.cpp: the newcsr_alloc_from_cscbuilds the CSR copy from the scaled CSC matrix with HiGHS's ownHighsSparseMatrix::ensureRowwise, then passes it tocsr_alloc_matrixas a CSR source.data_allocnow returnsRETCODE_FAILEDfor any input format other than CSC. The wrapper only ever passes CSC.cupdlp_utils.c/.h: deletescsc2csr,csr2cscand the CSR↔CSC cases incsr_alloc_matrix/csc_alloc_matrix.csr_copynow copies withCUPDLP_COPY_VECand creates the cuSPARSE CSR descriptor, matchingcsc_copy.csc2csrused to do both, so GPU builds keep their device CSR matrix. As a resultcsr_copyreturnscupdlp_intinstead ofvoid.cupdlp_cs.c/.hand removes them fromcupdlp.h,cmake/sources.cmake, the CUDA source list inhighs/CMakeLists.txt,highs/meson.buildandcupdlp/Diff. Bazel picks up*.cby glob, so it needs no change.cupdlp/README.md: notes why the files were removed.These are internal cuPDLP-C symbols, so the HiGHS API and the language bindings are unchanged. The installed internal header
include/highs/pdlp/cupdlp/cupdlp_cs.hno longer exists.Checklist
latestbranchRelated issue
Closes #3712