SIGILL on EPYC 7713P Zen3 (family 0x19, exfamily 9), AVX2, no AVX-512
Author: gland1Created Sep 28, 2026Updated Sep 28, 2026
I've built openblas as part of milvus on an AVX-512 capable host. A crash occured during one of openblas usages. I've fixed this by: setting baseline to HASWELL and patching the dynamic capability discovery:
--- a/driver/others/dynamic.c +++ b/driver/others/dynamic.c @@ -886,16 +886,27 @@ } } else if (exfamily == 8) { /* if (model == 1 || model == 8) */ {
if(support_avx())
/* Zen/Zen+/Zen2 (family 0x17) have no AVX-512. Never dispatch to apossibly AVX-512-compiled ZEN kernel without an AVX-512 check;fall back to the AVX2 HASWELL kernel. */if(support_avx512()) return &gotoblas_ZEN;else if(support_avx2())return &gotoblas_HASWELL; else{ openblas_warning(FALLBACK_VERBOSE, BARCELONA_FALLBACK); return &gotoblas_BARCELONA; //OS doesn't support AVX. Use old kernels. } } } else if (exfamily == 9) {
if(support_avx())
/* Family 0x19 covers Zen3 (no AVX-512) and Zen4 (AVX-512). Onlydispatch to the ZEN kernel when AVX-512 is actually present;otherwise use the AVX2 HASWELL kernel to avoid executing AVX-512instructions on Zen3 (illegal instruction / SIGILL). */if(support_avx512()) return &gotoblas_ZEN;else if(support_avx2())return &gotoblas_HASWELL; else{ openblas_warning(FALLBACK_VERBOSE, BARCELONA_FALLBACK); return &gotoblas_BARCELONA; //OS doesn't support AVX. Use old kernels.
Source: OpenMathLib/OpenBLAS