Detect OpenCL 3.0 __opencl_c_subgroups in CLAccelerator and guard cl_khr_subgroups pragma
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with src/opencl/cl_accelerator.cpp and inspect how CLAccelerator::set_device detects OpenCL C versions and subgroup support, keeping the stated OpenCL C++ 1.2 compatibility in mind. Then review the three named .cl files and their generated headers under src/opencl/generated/auto_*.hpp. Done means the OpenCL 3.0 subgroup feature is detected, the extension pragmas are guarded, and the named tests compile and pass on an OpenCL 3.0 device.
索引モデルが issue の本文から書いたものです。
説明
Problem: CLAccelerator::set_device in src/opencl/cl_accelerator.cpp only checks CL_DEVICE_OPENCL_C_VERSION (>= 2.0) and cl_khr_subgroups in CL_DEVICE_EXTENSIONS, which fails on OpenCL 3.0 devices like Intel UHD Graphics (NEO) where CL_DEVICE_OPENCL_C_VERSION reports OpenCL C 1.2 and subgroups are exposed as the OpenCL 3.0 feature __opencl_c_subgroups (CL_DEVICE_OPENCL_C_ALL_VERSIONS / CL_DEVICE_OPENCL_C_FEATURES / CL_DEVICE_MAX_NUM_SUB_GROUPS), leaving SPLA_HAS_SUBGROUPS == 0 everywhere including tests. Update CLAccelerator::set_device (compatible with CL_HPP_TARGET_OPENCL_VERSION 120) to detect OpenCL 3.0 C support and __opencl_c_subgroups alongside the OpenCL 2.x cl_khr_subgroups check, guard #pragma OPENCL EXTENSION cl_khr_subgroups : enable with #ifdef cl_khr_subgroups in block_scan.cl, mxm_compute_spgemm_part.cl, and sort_and_combine_device.cl (regenerating src/opencl/generated/auto_*.hpp), and verify in tests/test_opencl_block_scan.cpp / test_opencl_sort_and_combine.cpp / test_opencl_compute_spgemm_part.cpp that SPLA_HAS_SUBGROUPS == 1 compiles and passes on OpenCL 3.0 devices.
- 主要言語
- C++
- スター
- 37
- フォーク
- 21
- 平均マージ
- 11時間 3分
- マージ済み PR(30日)
- 13
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 1週間以上 初心者へのやさしさ 35/100
SparseLinearAlgebra/spla#313 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
SparseLinearAlgebra/spla の issue をすべて見る
似ている issue
-
[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 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
gofractally/psibase#2379 ·
メンテナーはふだん 3 日以内に返信