From 7ab65465571404385c9b81dc7842a7f03ad34f28 Mon Sep 17 00:00:00 2001 From: Bartlomiej Wroblewski Date: Thu, 17 Aug 2023 17:54:11 +0200 Subject: [PATCH] Fix datatype in inner_product when V_DOT2 is disabled (#849) [ROCm/composable_kernel commit: 32fe996da0aefc5274493b857a91f217f7fe3561] --- include/ck/utility/inner_product.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ck/utility/inner_product.hpp b/include/ck/utility/inner_product.hpp index 0087ae0f7a..b58b2b3319 100644 --- a/include/ck/utility/inner_product.hpp +++ b/include/ck/utility/inner_product.hpp @@ -94,8 +94,8 @@ __device__ void inner_product(const half2_t& a, const h const vector_type b_vector{b}; static_for<0, 2, 1>{}([&](auto i) { - c += type_convert(a_vector.AsType()[i]) * - type_convert(b_vector.AsType()[i]); + c += type_convert(a_vector.AsType()[i]) * + type_convert(b_vector.AsType()[i]); }); #endif }