You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CK Tile] UniversalGemmKernel silently rejects D tensors whose layout differs from CLayout #3766
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 QuantGemmKernel RowColQuant 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.
Moved to ROCm/rocm-libraries#11722 — this repository is a read-only mirror and ck_tile issues are now filed and triaged in the monorepo. Please follow the new one; this can be closed.
Activity
ThomasNing commentedon Sep 5, 2026
Moved to ROCm/rocm-libraries#11722 — this repository is a read-only mirror and ck_tile issues are now filed and triaged in the monorepo. Please follow the new one; this can be closed.
fix(ck_tile): PermuteN epilogue applies wrong per-token/per-channel s…
[rocm-libraries] ROCm/rocm-libraries#11700 (commit e5eebb6)
feat(ck_tile): make weight-preshuffled B usable with RowCol (per-toke…
[rocm-libraries] ROCm/rocm-libraries#11721 (commit d8dab35)
fix(ck_tile): RowColQuant example allocates a 1x1 BQ tensor but reads…
fix(ck_tile): report the D-tensor layout rejection instead of failing…
[rocm-libraries] ROCm/rocm-libraries#11701 (commit d4c2683)