Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#6,069 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 小时
30 天内合并 PR
46

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OpenMathLib/OpenBLAS 的其他 Issue

查看 OpenMathLib/OpenBLAS 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。