From 3687260bc7e7578826d7e21f4d4fb71f1d08c334 Mon Sep 17 00:00:00 2001 From: Eric Mann Date: Thu, 29 Oct 2026 11:11:39 -0700 Subject: [PATCH] fix: portable ggml on x86_64 release legs (GGML_NATIVE=OFF) whisper.cpp's CMake defaults to GGML_NATIVE=ON, so ext-whisper's vendored ggml was compiled with -march=native for the release runner. The ubuntu-26.04 runners have AVX-512: ext-whisper v0.1.1's x86_64 binary contains 4,460 zmm instructions (v0.1.0: none) and dies with SIGILL on a Ryzen 5 3400G (AVX2, no AVX-512). whisper-rs-sys forwards GGML_* env vars to CMake; OFF selects ggml's portable AVX/AVX2/FMA defaults. x86_64 legs only; arm64 macOS native is the M1 floor. llama-cpp-sys-2 already forces OFF (ext-infer 0.2.1's binary: 0 zmm, runs on AVX2). --- CHANGELOG.md | 11 +++++++++++ template/managed/.github/workflows/release.yml | 13 +++++++++++++ 2 files changed, 24 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51d69a0..3f70fff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Extensions pick changes up with `bin/sync`; the version records which scaffold an extension was synced from. +## [0.2.1] - 2026-10-29 + +### Fixed + +- Release builds export `GGML_NATIVE=OFF` on x86_64 legs, so a vendored + ggml (whisper.cpp) is built for ggml's portable AVX2 baseline instead + of the runner's CPU. The ubuntu-26.04 runners have AVX-512, and + ext-whisper 0.1.1's x86_64 binaries crashed with SIGILL on AVX2-only + CPUs. + ## [0.2.0] - 2026-10-29 ### Added @@ -45,5 +55,6 @@ First release: the `template/managed/` and `template/seed/` trees, POSIX `bin/render` and `bin/sync`, per-repo `.ext-template.conf`, and the `versions.conf` pin cascade. +[0.2.1]: https://github.com/DisplaceTech/ext-template/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/DisplaceTech/ext-template/compare/v0.1.0...v0.2.0 [0.1.0]: https://github.com/DisplaceTech/ext-template/releases/tag/v0.1.0 diff --git a/template/managed/.github/workflows/release.yml b/template/managed/.github/workflows/release.yml index e507d1e..41cd9ff 100644 --- a/template/managed/.github/workflows/release.yml +++ b/template/managed/.github/workflows/release.yml @@ -174,6 +174,19 @@ jobs: # the matrix. key: release-php-${{ matrix.php }}-${{ matrix.arch }} + # Portable ggml on x86_64. whisper.cpp's CMake defaults to + # GGML_NATIVE=ON (-march=native), so a vendored ggml is tuned to + # whatever CPU the runner happens to have. The ubuntu-26.04 runners + # have AVX-512, and ext-whisper 0.1.1's x86_64 binaries SIGILL'd on + # AVX2-only CPUs (Zen 2/Zen+, pre-Ice Lake Intel). OFF selects ggml's + # portable defaults (AVX/AVX2/FMA/F16C, no AVX-512), matching the + # x86-64-v3 floor. llama-cpp-sys-2 already forces OFF; extensions + # without ggml ignore it. Not set on arm64: the macOS legs' native + # target is Apple M1, the floor of every supported Mac. + - name: Portable ggml codegen (x86_64) + if: matrix.arch == 'x86_64' + run: echo "GGML_NATIVE=OFF" >> "$GITHUB_ENV" + - name: Build release env: # Setting RUSTFLAGS clobbers .cargo/config.toml's rustflags, so