Fix OpenCL mxm sort-mode fallback, pinned staging and batched status readback
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- cpp
- 領域
- backend, performance
研究方向
Read spla/AGENTS.md and Algorithm Semantics.md first, then inspect spla/src/opencl/cl_mxm_compute_spgemm_part.hpp around line 143 and cl_mxm_pipeline.hpp around lines 153–196, 557, 587, 750, and 780. Compare the staging and status transfer approach with GALATIC’s Multiply.cuh lines 569–571, following the linked source references in Algorithm Semantics.md. Done means large-column cases such as cols = 227320 select 64-bit mode, pinned staging is reused, and the four status values are read together.
由索引模型根據 Issue 內容生成。
描述
You are porting step by step the multiplication algorithm from GALATIC and integrating it into the spla library, following spla architecture. Its semantics are given to you. The "HOW" of implementing it is in the GALATIC sources (links to the specific ones are in Algorithm Semantics.md). Read spla/AGENTS.md, then Algorithm Semantics.md. Simplifying the implementation without a reason is not allowed. If you have doubts, uncertainty, or ambiguity, ask immediately. If you see are cub primitives,which don't have a direct OpenCL or spla direct analog, you need to observe how they work(in cub/), so that you don’t end up writing a naive or inefficient implementation. Right now you need to fix this critical bugs:
Fix the sort-mode selection in spla/src/opencl/cl_mxm_compute_spgemm_part.hpp:143 so that 32-bit mode is chosen only when row_bits + col_bits <= 32, with large-column cases such as cols = 227320 falling back to 64-bit mode.
- Persistent pinned staging: create one host-visible/pinned buffer (CL_MEM_ALLOC_HOST_PTR) once and reuse it, instead of cl_mxm_read/write allocating staging and doing a blocking copy every time (cl_mxm_pipeline.hpp:153-196).
- Batched readback: write flags, shared_rows, counters, and output_count into one status buffer, then read/map it once instead of 5 separate blocking reads (:557,587,750,780).
Goal: remove repeated queue drains, so the CPU does not wait after every small scalar. GALATIC does something similar with one cudaMemcpy for flags+counters: Multiply.cuh:569-571.
- 主要語言
- C++
- 星號
- 37
- 分支
- 21
- 平均合併
- 11 小時 3 分鐘
- 30 天內合併 PR
- 13
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
SparseLinearAlgebra/spla 的其他 Issue
-
task
難度 2/5 1-3 小時 新手友好度 76/100
SparseLinearAlgebra/spla#316 · 1 則留言 ·
維護者通常 1 天內回覆
-
task
難度 1/5 1 小時以內 新手友好度 88/100
SparseLinearAlgebra/spla#249 · 1 則留言 ·
維護者通常 1 天內回覆
-
task
難度 4/5 3-5 天 新手友好度 52/100
SparseLinearAlgebra/spla#315 · 1 則留言 ·
維護者通常 1 天內回覆
-
task
難度 3/5 1-2 天 新手友好度 70/100
SparseLinearAlgebra/spla#314 · 1 則留言 ·
維護者通常 1 天內回覆
-
Optimize compute_spgemm_part chunk flushes, atomics, radix sort, SLM, restrict, and subgroup shuffle未關閉task
難度 5/5 一週以上 新手友好度 35/100
SparseLinearAlgebra/spla#313 · 1 則留言 ·
維護者通常 1 天內回覆
查看 SparseLinearAlgebra/spla 的全部 Issue
相似的 Issue
-
Make the HTTP server's keep-alive and headers timeouts configurable可能已有人在做 @mattgodbolt 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
compiler-explorer/compiler-explorer#9902 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
Nixtla/statsforecast#1371 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itself可能已有人在做 @fedonman 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 82/100
SteveMacenski/slam_toolbox#918 ·