From f81a560b507d39041a3b5ea0f415d4881aa92418 Mon Sep 17 00:00:00 2001 From: Xiaoran Chen Date: Wed, 27 May 2026 16:25:52 -0700 Subject: [PATCH] Fix static_assert bug in streamk_gemm_kernel.hpp The single-argument static_assert uses the string literal as the condition, which implicitly converts to true (non-null pointer), so the assertion never fires. Add false as the condition so it correctly triggers a compile error when an unsupported reduction strategy is instantiated. --- .../ops/gemm/kernel/streamk_gemm/streamk_gemm_kernel.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_tile/ops/gemm/kernel/streamk_gemm/streamk_gemm_kernel.hpp b/include/ck_tile/ops/gemm/kernel/streamk_gemm/streamk_gemm_kernel.hpp index 87fef5089a..dc522c610b 100644 --- a/include/ck_tile/ops/gemm/kernel/streamk_gemm/streamk_gemm_kernel.hpp +++ b/include/ck_tile/ops/gemm/kernel/streamk_gemm/streamk_gemm_kernel.hpp @@ -515,7 +515,7 @@ struct StreamKKernel } else { - static_assert( + static_assert(false, "An implementation does not exist for the chosen reduction strategy."); }