[CK Tile] UniversalGemmKernel silently rejects D tensors whose layout differs from CLayout
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- cpp
- Área
- backend, performance
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C++
- Estrellas
- 552
- Forks
- 316
- Merge medio
- 3 d 14 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ROCm/composable_kernel
-
[ck_tile] FastGeluAsm::operator()<float, float> returns wrong results from -O1 up: inline-asm scratch operand lacks earlyclobberPosiblemente ocupada @francois141 la tomó hace 17 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ROCm/composable_kernel#3763 ·
-
[ck_tile][FMHA] fp8 forward returns incorrect results for head dims not divisible by 16 (gfx950)Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
ROCm/composable_kernel#3796 ·
-
Tracking issue for #3792: relu2 CK XDL 2-stage MoE GEMM fix stalled on reviewPosiblemente ocupada @shantipriya-amd la tomó hace 19 días. Abierto
ROCm/composable_kernel#3794 · 1 asignado ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
ROCm/composable_kernel#3781 · 1 comentario ·
-
[CK Tile] 8-wave ABQuant silently returns wrong results when BQuantGroupSize::kN < WarpGemm::kNAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
ROCm/composable_kernel#3771 · 1 comentario ·
Todos los issues de ROCm/composable_kernel
Issues similares
-
bug good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
difficulty:easy func:gui prio:normal type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NatronGitHub/Natron#2118 ·
Los mantenedores suelen responder en 1 día
-
Bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
-
bug difficulty:easy prio:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NatronGitHub/openfx-io#523 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
ArduPilot/ardupilot_gazebo#195 ·