From d0f59a5ebe0aaeb1ed677367b4ae4010ba57b830 Mon Sep 17 00:00:00 2001 From: kiefer Date: Wed, 1 Oct 2025 07:59:42 +0000 Subject: [PATCH] Make sure all strides in ComputePtrOffset are at least value initialized to avoid undefined strides. Not convinced this struct is properly initialized in other code / future code. --- .../device/impl/device_grouped_conv_utils.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/ck/tensor_operation/gpu/device/impl/device_grouped_conv_utils.hpp b/include/ck/tensor_operation/gpu/device/impl/device_grouped_conv_utils.hpp index 5de429f9e5..bd1132b7e6 100644 --- a/include/ck/tensor_operation/gpu/device/impl/device_grouped_conv_utils.hpp +++ b/include/ck/tensor_operation/gpu/device/impl/device_grouped_conv_utils.hpp @@ -198,10 +198,10 @@ struct ComputePtrOffsetOfStridedBatch(g_idx) * BatchStrideE_; } - Array BatchStrideA_; - Array BatchStrideB_; - Array BatchStrideDs_; - long_index_t BatchStrideE_; + Array BatchStrideA_{}; + Array BatchStrideB_{}; + Array BatchStrideDs_{}; + long_index_t BatchStrideE_{}; long_index_t& BatchStrideC_ = BatchStrideE_; // alias for kernels without multiple D }; @@ -253,10 +253,10 @@ struct ComputePtrOffsetOfStridedBatch(g_idx) * BatchStrideE_; } - long_index_t BatchStrideA_; - long_index_t BatchStrideB_; - Array BatchStrideDs_; - long_index_t BatchStrideE_; + long_index_t BatchStrideA_{}; + long_index_t BatchStrideB_{}; + Array BatchStrideDs_{}; + long_index_t BatchStrideE_{}; long_index_t& BatchStrideC_ = BatchStrideE_; // alias for kernels without multiple D };