From e9f7c9bf426e1de4b11c2cb9fa6084d3a26f053d Mon Sep 17 00:00:00 2001 From: Clement Lin Date: Fri, 28 Mar 2025 17:39:49 +0800 Subject: [PATCH] [GEMM] Replace const auto with constexpr index_t --- example/ck_tile/99_toy_example/02_gemm/gemm.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/ck_tile/99_toy_example/02_gemm/gemm.hpp b/example/ck_tile/99_toy_example/02_gemm/gemm.hpp index a61b284f5a..a8002701ab 100644 --- a/example/ck_tile/99_toy_example/02_gemm/gemm.hpp +++ b/example/ck_tile/99_toy_example/02_gemm/gemm.hpp @@ -88,8 +88,8 @@ struct Gemm #if 1 #pragma message ("Cache-aware work group sch") return [=](index_t block_1d_id) { - const auto M01 = 4; - const auto GroupNum = 8; + constexpr index_t M01 = 4; + constexpr index_t GroupNum = 8; const auto update_N0 = ((((N0 / 2) * 2) / 2) / M01) * M01 * 2; const auto update_M0 = ((M0 / (GroupNum / 2)) * (GroupNum / 2)) / GroupNum / M01 * M01 * GroupNum;