AXPY looks bad especially on MacOS (M4)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- c, macos
- 領域
- performance
研究方向
首先重現報告的 2-D 卷積基準測試,並對 issue 中顯示的卷積迴圈進行效能分析,重點關注其中的 daxpy 呼叫。將 OpenBLAS 的結果與 Apple vecLib 以及報告的 x86_64 行為進行比較;當效能問題獲得識別並解決,且基準測試證據顯示出改善時,即可視為完成。
由索引模型根據 Issue 內容生成。
描述
I am doing some benchmarking on 2d convolution in octave and e.g. for simple benchmark like that:
r = ones (1, 5e4);
tic; x1 = conv (r, r); time_row_conv = toc
On MacOS (M4) the timing for OpenBLAS is 3.66 s), and for APPLE veclib it is 0.1 s.
On x86_64 linux (Ryzen 3950x) it is also a couple seconds (and pretty much the same as NETLIB).
I will try to get some other Blas on it eventually to compare.
The conv code essentially is:
const F77_INT len = ma - mb + 1; // Pre-calculate this value to avoid temporary
for (F77_INT k = 0; k < na - nb + 1; k++) {
for (F77_INT j = 0; j < nb; j++) {
for (F77_INT i = 0; i < mb; i++) {
double b_val = b[i + j*mb];
daxpy_(&len, &b_val, &a[mb-i-1 + (k+nb-j-1)*ma], &one, &c[k*len], &one);
}
}
}
and profiler shows that it all dominated by daxpy calls.
- 主要語言
- C
- 星號
- 7.6k
- 分支
- 1.7k
- 平均合併
- 1 天 17 小時
- 30 天內合併 PR
- 42
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
OpenMathLib/OpenBLAS 的其他 Issue
-
NVHPC: OpenBLAS should now pass `-fortranlibs` rather than `-pgf90libs` when using `nvc` to link in Fortran runtime可能已有人在做 @cparrott73 今天認領。 未關閉
難度 1/5 1 小時以內 新手友好度 20/100
OpenMathLib/OpenBLAS#6143 ·
維護者通常 1 天內回覆
-
openblas_set_threads_callback_function is a silent no-op on Windows可能已有人在做 @martin-frbg 於 12 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 43/100
OpenMathLib/OpenBLAS#6108 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
OpenMathLib/OpenBLAS#6104 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 58/100
OpenMathLib/OpenBLAS#6103 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 52/100
OpenMathLib/OpenBLAS#6102 · 1 則留言 ·
維護者通常 1 天內回覆
查看 OpenMathLib/OpenBLAS 的全部 Issue
相似的 Issue
-
v9.6.0: CMake incorrectly enforces presence of libevdev可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 67/100
維護者通常 1 天內回覆
-
IoTSDK
難度 2/5 1-3 小時 新手友好度 70/100
Azure/azure-iot-sdk-c#2776 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
bug Component component: net
難度 2/5 1-3 小時 新手友好度 78/100
RT-Thread/rt-thread#11913 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
contiki-ng/contiki-ng#3289 ·
維護者通常 3 天內回覆