Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#6,069 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c
領域
performance

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
    
主要言語
C
スター
7.6k
フォーク
1.7k
平均マージ
1日 6時間
マージ済み PR(30日)
46

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenMathLib/OpenBLAS のほかの issue

OpenMathLib/OpenBLAS の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。