From e77c272156ecc2c73dfce1974c57a4079fe806e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Pietil=C3=A4?= <> Date: Tue, 20 Jan 2026 06:00:31 -0500 Subject: [PATCH] Add static assert. --- .../impl/device_grouped_conv_fwd_multiple_abd_xdl_cshuffle.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ck/tensor_operation/gpu/device/impl/device_grouped_conv_fwd_multiple_abd_xdl_cshuffle.hpp b/include/ck/tensor_operation/gpu/device/impl/device_grouped_conv_fwd_multiple_abd_xdl_cshuffle.hpp index cc343f6f69..26d3d4a7bd 100644 --- a/include/ck/tensor_operation/gpu/device/impl/device_grouped_conv_fwd_multiple_abd_xdl_cshuffle.hpp +++ b/include/ck/tensor_operation/gpu/device/impl/device_grouped_conv_fwd_multiple_abd_xdl_cshuffle.hpp @@ -325,6 +325,8 @@ struct DeviceGroupedConvFwdMultipleABD_Xdl_CShuffle BComputeDataType> { using DeviceOp = DeviceGroupedConvFwdMultipleABD_Xdl_CShuffle; + static_assert(MXdlPerWave > 0 && NXdlPerWave > 0, "Invalid MXdlPerWave or NXdlPerWave"); + static_assert(MPerXDL > 0 && NPerXDL > 0, "Invalid MPerXDL or NPerXDL"); GET_MXDL_PER_WAVE_IMPL // Force usage of 16x16 instruction for WMMA static constexpr bool Wave32Force16MNPerXDL =