Native AMICA build + cross-platform release workflow (#165, phases 1-2) - #172
Merged
Merged
Conversation
* Add dependency-free native build with single-rank MPI shim * Harden shim seed-pinning and add no-MPI build check
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.
Summary
First two phases of epic #165: a dependency-free native AMICA build (single-rank MPI shim) and the cross-platform release workflow. Purely additive:
native/build tooling and a release-triggered workflow, with no change to the Python package or its CI. Merged early (per plan) so the 5-platform release matrix can be dispatch-validated before the Python native engine (Phase 3) is built on top.Phases 3 (native run engine + binary resolver) and 4 (rename to pamica) remain open under epic #165.
Phase 1 (#166, merged to epic in PR #170)
Single-rank MPI shim (
native/mpi_single.{f90,c}) + portablerandom_seed+vmath_shimremove the Open MPI / MKL / AMD-LibM runtime dependencies, so the AMICA Fortran reference builds into a self-contained binary. Proven mathematically identical to real Open MPI at machine epsilon (iteration-1 LL agrees to 8.9e-16;native/validate_shim.sh).Phase 2 (#167, merged to epic in PR #171)
.github/workflows/release-binaries.ymlbuilds the recipe natively on each of macos-arm64, linux-x64, linux-arm64, windows-x64 and windows-arm64, smoke-tests each binary on real sample EEG, and attaches checksummed assets to the release. The macOS binary is verified fully portable locally (links only Accelerate + libSystem).Test plan
native/validate_shim.sh: PASS at 8.9e-16 (shim == Open MPI).otool -Lshows only system libraries.workflow_dispatchafter this reachesmain(that is the reason for the early merge).windows-arm64is experimental (continue-on-error).