Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#6,069 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
    
Ngôn ngữ chính
C
Star
7.6k
Fork
1.7k
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
46

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenMathLib/OpenBLAS

Tất cả issue của OpenMathLib/OpenBLAS

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.