OpenCL mxm: fix chunk pool estimation and multi-segment row-list pointers

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

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

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

評価

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

調査の方向性

Start with src/opencl/cl_mxm_chunk_estimate.hpp and trace how estimate_chunk_pool accounts for chunk storage, including the 48-byte header. Then follow row-list pointers in src/opencl/kernels/chunk.cl and the mxm_merge_* paths in cl_mxm_pipeline.hpp and the mxm_merge_*.cl files. Check how CHUNK_MULTI_SEGMENT is passed as 0 or 1; done means pool estimates include headers and row-list pointers work across pool segments.

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

説明

task

Problem: OpenCL mxm breaks on larger matrices whenever CL_MXM_POOL_FAIL allocates a second pool segment: mxm_merge_* and spla_chunk_add_potentially_shared_row (output_row_list_heads / next_*) only address the latest single chunks buffer without segment index, while estimate_chunk_pool underestimates pool bytes by ignoring chunk headers.

Fix:

  1. Account for chunk header/prefix overhead (48 bytes per chunk) in estimate_chunk_pool (src/opencl/cl_mxm_chunk_estimate.hpp) to avoid unnecessary CL_MXM_POOL_FAIL restarts.
  2. Add multi-segment support to row-list pointers (src/opencl/kernels/chunk.cl) and mxm_merge_* (cl_mxm_pipeline.hpp, mxm_merge_*.cl), gated by -D CHUNK_MULTI_SEGMENT=0/1.
主要言語
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 を短くまとめたダイジェスト。