SIGILL on EPYC 7713P Zen3 (family 0x19, exfamily 9), AVX2, no AVX-512
维护者通常 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenMathLib/OpenBLAS 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 52/100
OpenMathLib/OpenBLAS#6059 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
OpenMathLib/OpenBLAS#6029 · 21 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
OpenMathLib/OpenBLAS#6028 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
OpenMathLib/OpenBLAS#6005 · 21 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
OpenMathLib/OpenBLAS#5930 · 2 条评论 ·
维护者通常 1 天内回复
查看 OpenMathLib/OpenBLAS 的全部 Issue
相似的 Issue
-
feature request
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
FujiNetWIFI/fujinet-firmware#1730 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 1/5 1 小时以内 新手友好度 92/100
-
category:port-update
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 2 天内回复