[Issue]: static_assert in streamk_gemm_kernel.hpp never fires due to string-to-bool conversion
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Accessibilité débutants
- 25/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- C++
- Étoiles
- 552
- Forks
- 316
- Merge moyen
- 3 j 14 h
- PR mergées (30 j)
- 2
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ROCm/composable_kernel
-
[ck_tile] FastGeluAsm::operator()<float, float> returns wrong results from -O1 up: inline-asm scratch operand lacks earlyclobberPeut-être pris @francois141 l’a pris il y a 17 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
ROCm/composable_kernel#3763 ·
-
[ck_tile][FMHA] fp8 forward returns incorrect results for head dims not divisible by 16 (gfx950)Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
ROCm/composable_kernel#3796 ·
-
Tracking issue for #3792: relu2 CK XDL 2-stage MoE GEMM fix stalled on reviewPeut-être pris @shantipriya-amd l’a pris il y a 19 jours. Ouverte
ROCm/composable_kernel#3794 · 1 personne assignée ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
ROCm/composable_kernel#3781 · 1 commentaire ·
-
[CK Tile] 8-wave ABQuant silently returns wrong results when BQuantGroupSize::kN < WarpGemm::kNOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
ROCm/composable_kernel#3771 · 1 commentaire ·
Toutes les issues de ROCm/composable_kernel
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
riscv-software-src/riscv-isa-sim#2640 ·
Les mainteneurs répondent en général sous 1 jour
-
bug good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
difficulty:easy func:gui prio:normal type:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
NatronGitHub/Natron#2118 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
-
mechanics UI
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
endless-sky/endless-sky#12949 ·
Les mainteneurs répondent en général sous 1 jour