[CK Tile] UniversalGemmKernel silently rejects D tensors whose layout differs from CLayout
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- cpp
- 領域
- backend, performance
調査の方向性
Start with universal_gemm_kernel.hpp:581-584 and cshuffle_epilogue.hpp:782, then compare the legacy GridwiseGemmMultiD row/column scale handling and the QuantGemmKernel RowColQuant path. Use a CK_TILE_LOGGING run to observe the current rejection. Done means either the D layout is supported in the CShuffle epilogue, the rejection identifies the D index and layout, or the supported RowColQuant route is documented.
索引モデルが issue の本文から書いたものです。
説明
universal_gemm_kernel.hpp:581-584 rejects any D tensor whose layout is not CLayout — and does so silently: no log line, no assert message, the kernel simply does not run. Localizing it took a CK_TILE_LOGGING run plus a source read.
This blocks a natural and otherwise-supported composition: a weight-preshuffled GEMM plus a per-token/per-channel scale epilogue, expressed as two broadcast D tensors —
- D0 = per-token A scale: an M-vector,
ColumnMajor, stride 0 in N - D1 = per-channel B scale: an N-vector,
RowMajor, stride 0 in M
D1 is accepted; D0 is not, because its layout differs from CLayout. Independently, cshuffle_epilogue.hpp:782 wraps every D window with the (M, N) distribution and has no handling for a column-layout D.
This is exactly the architecture CK's own legacy XDL path ships (GridwiseGemmMultiD with row/col scale Ds), so the operation is well-precedented; only the CK Tile universal path can't express it.
Asks, in increasing order of effort:
- make the rejection loud (a static_assert message or a log line naming the offending D index and layout);
- relax the check and add column-layout D distribution handling in the CShuffle epilogue;
- or, if RowColQuant is the intended route for this shape of problem, document that — it works (see the
QuantGemmKernelRowColQuant path) and it is not obvious from the examples.
Context: found while wiring per-token/per-channel FP8 GEMMs on gfx950; the RowColQuant + weight-preshuffle route works and measured +8-11% over the flatmm path at three GEMM shapes, so the composition is worth having.
- 主要言語
- C++
- スター
- 552
- フォーク
- 316
- 平均マージ
- 3日 14時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ROCm/composable_kernel のほかの issue
-
[ck_tile] FastGeluAsm::operator()<float, float> returns wrong results from -O1 up: inline-asm scratch operand lacks earlyclobber対応中かも @francois141 が 17 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ROCm/composable_kernel#3763 ·
-
[ck_tile][FMHA] fp8 forward returns incorrect results for head dims not divisible by 16 (gfx950)オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
ROCm/composable_kernel#3796 ·
-
Tracking issue for #3792: relu2 CK XDL 2-stage MoE GEMM fix stalled on review対応中かも @shantipriya-amd が 19 日前に担当しました。 オープン
ROCm/composable_kernel#3794 · 担当者 1 名 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
ROCm/composable_kernel#3781 · コメント 1 件 ·
-
[CK Tile] 8-wave ABQuant silently returns wrong results when BQuantGroupSize::kN < WarpGemm::kNオープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
ROCm/composable_kernel#3771 · コメント 1 件 ·
ROCm/composable_kernel の issue をすべて見る
似ている issue
-
bug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
difficulty:easy func:gui prio:normal type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NatronGitHub/Natron#2118 ·
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
bug difficulty:easy prio:low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NatronGitHub/openfx-io#523 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ArduPilot/ardupilot_gazebo#195 ·