Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Missing batch/BF16 entries in export generators and public headers

已關閉
#6,113 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

已經有一個關聯 PR 被合併了。

  • #6118 來自 @martin-frbg —— 已合併

評估

難度
3/5
預估耗時
1-2 天
新手友好度
55/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
c, perl, shell
領域
api, build-system

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
C
星號
7.6k
分支
1.7k
平均合併
1 天 18 小時
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 摘要。