[CK Tile] UniversalGemmKernel silently rejects D tensors whose layout differs from CLayout
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- cpp
- Domínio
- backend, performance
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C++
- Estrelas
- 552
- Forks
- 316
- Merge médio
- 3d 14h
- PRs com merge (30d)
- 2
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ROCm/composable_kernel
-
[ck_tile] FastGeluAsm::operator()<float, float> returns wrong results from -O1 up: inline-asm scratch operand lacks earlyclobberTalvez já em andamento @francois141 assumiu há 17 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ROCm/composable_kernel#3763 ·
-
[ck_tile][FMHA] fp8 forward returns incorrect results for head dims not divisible by 16 (gfx950)Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
ROCm/composable_kernel#3796 ·
-
Tracking issue for #3792: relu2 CK XDL 2-stage MoE GEMM fix stalled on reviewTalvez já em andamento @shantipriya-amd assumiu há 19 dias. Aberta
ROCm/composable_kernel#3794 · 1 responsável ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
ROCm/composable_kernel#3781 · 1 comentário ·
-
[CK Tile] 8-wave ABQuant silently returns wrong results when BQuantGroupSize::kN < WarpGemm::kNAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
ROCm/composable_kernel#3771 · 1 comentário ·
Todas as issues de ROCm/composable_kernel
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
riscv-software-src/riscv-isa-sim#2640 ·
Mantenedores costumam responder em até 1 dia
-
bug good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
difficulty:easy func:gui prio:normal type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
NatronGitHub/Natron#2118 ·
Mantenedores costumam responder em até 1 dia
-
Bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
-
mechanics UI
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
endless-sky/endless-sky#12949 ·
Mantenedores costumam responder em até 1 dia