mirror of https://github.com/google/gemma.cpp.git
Build fix for Arm SVE (invalid template arg on op)
PiperOrigin-RevId: 854110884
This commit is contained in:
parent
95592a574e
commit
6d43d6ee19
|
|
@ -452,7 +452,7 @@ static VF4 HWY_INLINE Reduce4(DF df, VF x_0, VF x_1, VF x_2, VF x_3,
|
|||
constexpr size_t kMaxLanes = hn::MaxLanes(df);
|
||||
HWY_LANES_CONSTEXPR size_t kLanes = hn::Lanes(df);
|
||||
HWY_ALIGN T x_transposed[4 * kMaxLanes];
|
||||
hn::StoreInterleaved4<DF>(x_0, x_1, x_2, x_3, df, x_transposed);
|
||||
hn::StoreInterleaved4(x_0, x_1, x_2, x_3, df, x_transposed);
|
||||
VF4 result = hn::Load(df4, x_transposed);
|
||||
for (int i = 1; i < kLanes; ++i) {
|
||||
result = reducer(result, hn::Load(df4, x_transposed + i * 4));
|
||||
|
|
|
|||
Loading…
Reference in New Issue