Fix datatype in inner_product when V_DOT2 is disabled (#849)

[ROCm/composable_kernel commit: 32fe996da0]
This commit is contained in:
Bartlomiej Wroblewski
2023-08-17 17:54:11 +02:00
committed by GitHub
parent d4888118a5
commit 7ab6546557

View File

@@ -94,8 +94,8 @@ __device__ void inner_product<half2_t, half2_t, float>(const half2_t& a, const h
const vector_type<half_t, 2> b_vector{b};
static_for<0, 2, 1>{}([&](auto i) {
c += type_convert<int32_t>(a_vector.AsType<half_t>()[i]) *
type_convert<int32_t>(b_vector.AsType<half_t>()[i]);
c += type_convert<float>(a_vector.AsType<half_t>()[i]) *
type_convert<float>(b_vector.AsType<half_t>()[i]);
});
#endif
}