[Issue]: static_assert in streamk_gemm_kernel.hpp never fires due to string-to-bool conversion
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Facilidade para iniciantes
- 25/100
Direção de pesquisa
Read include/ck_tile/ops/gemm/kernel/streamk_gemm/streamk_gemm_kernel.hpp and inspect the else branch for unsupported ReductionStrategy values. Compare the intended compile-time failure with the fix described in pull request #3742; done means unsupported strategies trigger the assertion rather than compiling silently.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem Description
Hi experts, I want to confirm with an usage of static_assert in the repo:
In include/ck_tile/ops/gemm/kernel/streamk_gemm/streamk_gemm_kernel.hpp, the else branch for unsupported reduction strategies uses:
static_assert("An implementation does not exist for the chosen reduction strategy.");
This is the single-argument form of static_assert, where the string literal is the condition, not the message. Since a string literal is a non-null pointer, it implicitly converts to true, so the assertion never fires — even when an unsupported ReductionStrategy is instantiated.
I've submitted a fix in #3742 that changes it to the two-argument form:
static_assert(false, "An implementation does not exist for the chosen reduction strategy.");
I wanted to confirm: was the original code intended to be a compile-time error for unsupported strategies? Or was there a different intent here? The surrounding code
structure (an if constexpr / else if chain over ReductionStrategy) suggests it was meant to catch unhandled cases at compile time.
Thank you!
Operating System
CentOS Stream 9
CPU
AMD EPYC 9655 96-Core Processor
GPU
Other
Other
AMD MI350x with ROCm 7.0.2 (please ignore ROCm version below)
ROCm Version
ROCm 6.0.0
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
- 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