Updated build for external dependencies (mods-latest)#2989
Draft
mathgeekcoder wants to merge 27 commits intoERGO-Code:mods-latestfrom
Draft
Updated build for external dependencies (mods-latest)#2989mathgeekcoder wants to merge 27 commits intoERGO-Code:mods-latestfrom
mathgeekcoder wants to merge 27 commits intoERGO-Code:mods-latestfrom
Conversation
* Added RPATH for linux/osx to find library * Support for vcpkg BLAS on linux (OpenBLAS) and osx (accelerate, not tested - might not actually work as is) * Fixed type redefinition warning on metis * Fixed `template-depth` compile warning on C (not C++) files * Minor code cleanup (e.g., removed debug messages) * Added thread safety for dependency loading * Added `highspy._core.getExtrasLoadStatus` for debugging the library load * Added highspy COMPONENT to avoid pointless copy of header files * Tested with BUILD_SHARED_LIBS=ON/OFF and BUILD_SHARED_EXTRAS_LIB=ON/OFF and HIPO=ON/OFF (windows and linux) * Tested highspy and highspy-extras (windows and linux)
* Entirely optional for regular build (only uses if vcpkg installed) * Currently used by highspy build (can be easily reverted) * Uses github commit SHA for specific openblas version (reproducibility) * highspy-extras build seems faster on windows (fresh 20mins -> 5mins) and 30s with cached openblas * Should also work when creating highs as a vcpkg package
…ssues with highspy_extras build.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## mods-latest #2989 +/- ##
==============================================
Coverage ? 75.07%
==============================================
Files ? 376
Lines ? 97122
Branches ? 15521
==============================================
Hits ? 72914
Misses ? 23932
Partials ? 276 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
galabovaa
approved these changes
Apr 23, 2026
…uld be github.workspace) * Fixed issue with HIPO=OFF and copyright linking * Hopefully fixed issue with vcpkg for highspy-extras
Since cibuildwheel on linux uses a container, need to point to host system's vcpkg instead.
* Updated sdist workflow to build highspy_extras in ./dist * Updated vcpkg.cmake to use VCPKG_INSTALLATION_ROOT if VCPKG_ROOT not set
* fixed formatting issue * fixed sdist build for highspy-extras
…extras * changed test-python-win workflow to point to correct tests directory * Updated vcpkg to treat VCPKG_ROOT="" as undefined * Removed vcpkg support for i686 and musllinux, uses BUILD_OPENBLAS instead
* Fixed path issue with nuget tests
* Static link libhighs_extras into libhighs for julia build * Fix venv paths for macos python * Fix path warning for win pipx * Removed vcpkg for workflow that specifically shouldn't use it * Added verbose logging for debugging * Fixed openblas path issue
* Fixed julia build * Fixed macos issue with @loader_path
…uild times * Removed vcpkg from highspy build (not extras) * Fixed issue with openblas_set_num_threads not included in build
…s of the new recommended approach
* Added some more tests for better coverage
* Formatting HighsExternalDeps * Attempt at making highspy_extras build faster by building all on same VM (per image) and caching the vcpkg installs - should save hours of compute effort.
* Fix issue with vcpkg linux not using cache (missing zip/unzip) * Fixed linker warnings with highs_extras on windows * Improve hipo workflow build times
…e build times for highspy-extras
…kg does not build due to libcurl
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.
Note: this PR is for mods-latest branch
Other changes