mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-20 21:09:08 +00:00
Fix datatype in inner_product when V_DOT2 is disabled (#849)
[ROCm/composable_kernel commit: 32fe996da0]
This commit is contained in:
committed by
GitHub
parent
d4888118a5
commit
7ab6546557
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user