OpenCL mxm: align updateMinValue and updateMaxValue with GALATIC semantics

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
hpc

調査の方向性

Start with the OpenCL helpers in mxm_helper_functions.cl (lines 45, 52, 90, 100 and 106-145) and the tests at test_opencl_mxm_helper_functions.cpp (lines 50-60 and 147), then compare against the GALATIC reference in HelperFunctions.cuh (lines 739-786). Run the helper tests first to get a baseline. Done means the warp size is the fixed 32 contract, the num parameter is an int with an (int)i < num check, and the tests pass. The accumulator memory question (shared versus __global) needs a maintainer decision before any wiring changes.

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

説明

task
  • WARP_SIZE: result is still correct (atomic_min/max is idempotent), but it breaks the agreed fixed-32 contract. Fix to internal MXM_WARP_SIZE 32. See mxm_helper_functions.cl:45,52,90,100, tests at test_opencl_mxm_helper_functions.cpp:50-60,147; GALATIC reference HelperFunctions.cuh:739-786.
  • num type: no live bug — GALATIC’s array overloads are unused; all 4 calls are scalar (acSpGEMM_SpGEMM.cuh:543-546). But uint -1 folds in all values instead of none. Use int num + (int)i < num. See HelperFunctions.cuh:740-747,774-781 vs mxm_helper_functions.cl:106-145.
  • Accumulator memory: GALATIC uses shared per block; SPLA uses __global*. Check before wiring into compute. See acSpGEMM_SpGEMM.cuh:543-552 vs mxm_helper_functions.cl:86-103.
主要言語
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 を短くまとめたダイジェスト。