Optimize assign_combine_blocks single-workgroup fast path, dummy reuse, and program caching

オープン
#303 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp
領域
performance

調査の方向性

Start by reading the referenced sections of cl_mxm_assign_combine_scan.hpp and cl_mxm_assign_combine_blocks.hpp, then trace assign_scan_run and the single-workgroup scan flow. Check existing tests for scan behavior and run the relevant test suite; done means single-workgroup inputs avoid the extra kernels and carry allocation, scans reuse a dummy buffer, and the program is cached without changing results.

索引モデルが issue の本文から書いたものです。

説明

task

Problem: assign_combine_blocks incurs heavy OpenCL overhead from multi-pass prescan/propagate kernels, temporary carry/dummy buffer allocations, and redundant program lookups even on single-workgroup inputs.

Fix: In cl_mxm_assign_combine_scan.hpp and cl_mxm_assign_combine_blocks.hpp, add a single-kernel fast path when groups == 1 (skipping carry allocation, prescan, and recursive assign_scan_inplace), reuse a single preallocated dummy buffer instead of calling assign_scan_dummy() per scan, and cache the CLProgram within assign_scan_run.

Refs: cl_mxm_assign_combine_scan.hpp:70-72, 142-213, 279-321; cl_mxm_assign_combine_blocks.hpp:133-179.

主要言語
C++
スター
37
フォーク
21
平均マージ
11時間 3分
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SparseLinearAlgebra/spla のほかの issue

SparseLinearAlgebra/spla の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。