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

Missing batch/BF16 entries in export generators and public headers

Đã đóng
#6,113 0 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

Một pull request liên quan đã được merge.

  • #6118 của @martin-frbg — đã merge

Đá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
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, perl, shell
Lĩnh vực
api, build-system

Hướng nghiên cứu

Start by comparing the names in the Make interface rules with the lists in exports/gensymbol and exports/gensymbol.pl, then run the example command from the issue to see the current output. The header gaps are in cblas.h and common_interface.h. Done means both generators emit the missing batch and BF16 names in the osx, win2k and objcopy modes, and the headers declare them. Native Windows and macOS link checks are not required.

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

Mô tả

At develop b366de2d66111344cd867576810ad71651674b9e, I found several mismatches between the interface build rules and the export/header lists.

The names below are base API names before platform decoration or a configured prefix/suffix. For the batch families, ? means s/d/c/z, plus sb when BUILD_BFLOAT16=1.

Interface names present in the Make build rules exports/gensymbol exports/gensymbol.pl
Fortran-style ?gemm_batch and ?gemm_batch_strided Missing Missing
cblas_?gemm_batch_strided Missing Missing
bscal, cblas_bscal (BF16) Missing Missing
cblas_sbgemmt, cblas_sbgemmtr (BF16) Missing Present

Both generators already list the non-strided cblas_?gemm_batch forms and the Fortran-style sbgemmt/sbgemmtr forms.

I reproduced these list differences by running both generators in osx, win2k, and objcopy modes with the relevant precisions enabled. For example:

sh exports/gensymbol osx arm64 _ 0 0 1 1 0 0 "" "" 0 1 0 1 1 1 1

These lists feed the Make build's Windows export definitions, macOS exported-symbol list, and symbol-renaming maps. Windows also uses dllexport, so actual link behavior depends on the build path; I have not run a native Windows/macOS link test.

There are related declaration gaps: cblas.h has no prototypes for cblas_bscal, cblas_sbgemmt, or cblas_sbgemmtr; common_interface.h (used to generate f77blas.h) has no declarations for the Fortran-style batch forms or sbgemmt/sbgemmtr. The batch implementations came through #5449 and #5458, which did not update those export lists or common_interface.h.

Found with AI assistance.

Ngôn ngữ chính
C
Star
7.6k
Fork
1.7k
Merge trung bình
1 ngày 18 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.