mirror of
https://github.com/lemonade-sdk/stable-diffusion.cpp.git
synced 2026-11-22 00:55:10 -10:00
ggml's CMake defaults GGML_NATIVE=ON, which adds -march=native and silently enables every extension the build runner's CPU advertises. Recent Azure ubuntu-latest hosts are Xeon Platinum 8370C (AVX-512 capable), so the master-593 release of libstable-diffusion.so was built with 5,396 zmm / 1,582 k-mask AVX-512 instructions and SIGILLs immediately on any consumer or CI host without AVX-512. Pin the Linux x86_64 cpu and ROCm builds to GGML_NATIVE=OFF + GGML_AVX2=ON + GGML_FMA=ON + GGML_F16C=ON — a portable Haswell-era baseline that downstream consumers (Lemonade, end users) can rely on. The Windows AVX2 cpu build and Windows ROCm builds already use GGML_NATIVE=OFF; this brings Linux into line. Verified by inspecting libstable-diffusion.so: master-569 (no AVX-512): 0 zmm refs, 0 k-mask refs master-593 (AVX-512): 5,396 zmm refs, 1,582 k-mask refs The crash this fixes manifests in lemonade-sdk/lemonade CI as sd-server "exit code: -1" within 200ms on the GitHub-hosted ollama test job, while the self-hosted ROCm runner (full AVX-512) succeeds.