[Issue]: static_assert in streamk_gemm_kernel.hpp never fires due to string-to-bool conversion
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- C++
- 星标
- 552
- 派生
- 316
- 平均合并
- 3 天 14 小时
- 30 天内合并 PR
- 2
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ROCm/composable_kernel 的其他 Issue
-
[ck_tile] FastGeluAsm::operator()<float, float> returns wrong results from -O1 up: inline-asm scratch operand lacks earlyclobber可能已有人在做 @francois141 于 17 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
ROCm/composable_kernel#3763 ·
-
[ck_tile][FMHA] fp8 forward returns incorrect results for head dims not divisible by 16 (gfx950)未关闭
难度 4/5 3-5 天 新手友好度 25/100
ROCm/composable_kernel#3796 ·
-
Tracking issue for #3792: relu2 CK XDL 2-stage MoE GEMM fix stalled on review可能已有人在做 @shantipriya-amd 于 19 天前认领。 未关闭
ROCm/composable_kernel#3794 · 已指派 1 人 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
ROCm/composable_kernel#3781 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 68/100
ROCm/composable_kernel#3771 · 1 条评论 ·
查看 ROCm/composable_kernel 的全部 Issue
相似的 Issue
-
bug good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
difficulty:easy func:gui prio:normal type:bug
难度 2/5 1-3 小时 新手友好度 78/100
NatronGitHub/Natron#2118 ·
维护者通常 1 天内回复
-
Bug
难度 1/5 1 小时以内 新手友好度 82/100
-
bug difficulty:easy prio:low
难度 2/5 1-3 小时 新手友好度 72/100
NatronGitHub/openfx-io#523 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
ArduPilot/ardupilot_gazebo#195 ·