Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

SIGILL on EPYC 7713P Zen3 (family 0x19, exfamily 9), AVX2, no AVX-512

Aperta
#6,069 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c
Ambito
performance

Direzione di ricerca

Start in driver/others/dynamic.c at the exfamily 8 and 9 dispatch branches, and trace the capability checks used for Zen kernels. Reproduce the reported SIGILL on an EPYC 7713P without AVX-512, then verify CPU selection avoids unsupported instructions while preserving behavior on AVX-512-capable hosts.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 a
    
  •        possibly 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). Only
    
  •        dispatch to the ZEN kernel when AVX-512 is actually present;
    
  •        otherwise use the AVX2 HASWELL kernel to avoid executing AVX-512
    
  •        instructions 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.
    
Lingua principale
C
Stelle
7.6k
Fork
1.7k
Merge medio
1g 6h
PR unite (30g)
46

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenMathLib/OpenBLAS

Tutte le issue di OpenMathLib/OpenBLAS

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.