Skip to content

Fix crash on CPUs without AVX-512#702

Merged
dharmab merged 1 commit into
mainfrom
pin-ggml-cpu-baseline
Jun 14, 2026
Merged

Fix crash on CPUs without AVX-512#702
dharmab merged 1 commit into
mainfrom
pin-ggml-cpu-baseline

Conversation

@dharmab

@dharmab dharmab commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Don't let GGML auto-detect CPU features and instead specify them explicitly. Fixes an issue where because the build environment could support CPU instructions not available on users' PCs, the published builds could run fine in CI tests but crash on user PCs.

Fixes #701

ggml's runtime ggml_cpu_has_*() helpers are compile-time macros, not
CPUID probes, so a CI build with GGML_NATIVE=ON on a runner that
happens to have AVX-512 embeds AVX-512 instructions in the static lib.
Intel disabled AVX-512 on all consumer 12th-14th gen CPUs, so the
resulting binaries crash with STATUS_ILLEGAL_INSTRUCTION during
whisper_init on common user hardware (e.g. issue #701, Raptor Lake).

Disable GGML_NATIVE and explicitly enable AVX, AVX2, F16C, FMA, BMI2,
and SSE4.2 on amd64 builds (Windows and Linux). Matches the AVX2 guard
already enforced in cmd/skyeye/main.go. macOS arm64 is unaffected.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@dharmab dharmab merged commit 94acbeb into main Jun 14, 2026
8 checks passed
@dharmab dharmab deleted the pin-ggml-cpu-baseline branch June 14, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug Report: SkyEye 1.9.2 crashing

1 participant