Fix SORT_TYPE_MODE == 1 row bit-width clamp in compute_spgemm_part_sort_type_mode and csp_row_bits

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

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

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

評価

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

調査の方向性

Start in src/opencl/cl_mxm_compute_spgemm_part.hpp and read compute_spgemm_part_sort_type_mode and csp_row_bits, tracing how the row bit width is calculated and where AROW_REFERENCE_TYPE storage size is enforced. Compare the behavior with GALATIC as described in the issue. Done when the local row bit width is used for sort mode selection while the 16-bit minimum remains only for storage, allowing eligible column counts to use 32-bit sort keys.

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

説明

task

Problem: compute_spgemm_part_sort_type_mode and csp_row_bits in src/opencl/cl_mxm_compute_spgemm_part.hpp artificially clamp SORT_TYPE_MODE == 1 encoded row bit-width to std::max(16u, csp_bit_width(block_size)) (16 bits instead of the actual ~8–9 bits needed for local row IDs), forcing matrices with cols >= 65536 to fall back to SORT_TYPE_MODE == 2 (64-bit ulong sort keys). Fix compute_spgemm_part_sort_type_mode and csp_row_bits to use the actual local row bit-width (keeping 16u only as the minimum storage size of AROW_REFERENCE_TYPE), matching GALATIC so cols up to 2^(32 - row_bits) stay on 32-bit SORT_TYPE_MODE == 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 を短くまとめたダイジェスト。