From 4a3c949753f502ff0b1abdc1ad37ed8a7da65a5b Mon Sep 17 00:00:00 2001 From: Enrico Degregori Date: Fri, 12 Dec 2025 10:11:42 +0000 Subject: [PATCH] Fix gridwise common --- .../gridwise_gemm_wmma_cshuffle_v3_common.hpp | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/ck/tensor_operation/gpu/grid/gridwise_gemm_wmma_cshuffle_v3_common.hpp b/include/ck/tensor_operation/gpu/grid/gridwise_gemm_wmma_cshuffle_v3_common.hpp index fef4306732..6003e897e1 100644 --- a/include/ck/tensor_operation/gpu/grid/gridwise_gemm_wmma_cshuffle_v3_common.hpp +++ b/include/ck/tensor_operation/gpu/grid/gridwise_gemm_wmma_cshuffle_v3_common.hpp @@ -918,6 +918,27 @@ struct GridwiseGemm_wmma_cshuffle_v3_base { if(num_k_loop <= BlockwiseGemmPipe::PrefetchStages) { + if(ck::EnvIsEnabled(CK_ENV(CK_LOGGING))) + { + std::cout << "Pipeline validation failed: num_k_loop (" << num_k_loop + << ") <= PrefetchStages (" << BlockwiseGemmPipe::PrefetchStages + << ") for pipeline version != v1." << __FILE__ << ":" << __LINE__ + << ", in function: " << __func__ << std::endl; + } + return false; + } + } + + if constexpr(is_same, int8_t>::value) + { + if(karg.KBatch > 1) + { + if(ck::EnvIsEnabled(CK_ENV(CK_LOGGING))) + { + std::cout << "int8_t does not support KBatch > 1. KBatch: " << karg.KBatch + << " " << __FILE__ << ":" << __LINE__ << ", in function: " << __func__ + << std::endl; + } return false; } }