OpenCL: implement tile-based element-wise mult of two sorted key-value arrays (Set intersection)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start from the proposed cl_intersect signature and the worked example, which gives the expected r_keys [4, 7] and r_values [7, 32]. Read the linked Boost.Compute set_intersection.hpp to see how sorted-key intersection is done on the GPU, then work out how the value lambda f is applied to matching keys. Done when the function reproduces the example output for sorted, unique-key inputs.
由索引模型根據 Issue 內容生成。
描述
Signature
void cl_intersect(cl::Queue,
cl::Buffer a_keys, cl::Buffer a_values, uint a_size,
cl::Buffer b_keys, cl::Buffer b_values. uint b_size,
cl::Buffer& r_keys, cl::Buffer& r_values, uint &r_size,
...)
Intpu: two sorted key-value arrays
A
uint a_size
uint a_keys[a_size] -- sorted, all keys unique, no duplicates
T a_values[a_size]
B
uint b_size
uint b_keys[b_size] -- sorted, all keys unique, no duplicates
T b_values[b_size]
Function
lambda func f: T x T -> T
Result: logical intersection of keys a and keys b
r_size <= min(a_size, b_size)
uint r_keys[r_size]
T r_values[r_size]
Example
a_keys [0, 1, 4, 7]
a_values [10, 10, 5, 30]
b_keys [2, 4, 5, 7, 8]
b_values [20, 2, 2, 2, 30]
f = (x, y) -> x + y
r_keys = [4, 7]
r_values = [7, 32]
Resources and links
- Boost compute implementation set intersection (but without values)
- 主要語言
- 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
-
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 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆