8000 [easy] Fix endif comments in functional_base.h (#153696) · pytorch/pytorch@9ccd601 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ccd601

Browse files
swolchokpytorchmergebot
authored andcommitted
[easy] Fix endif comments in functional_base.h (#153696)
The first one of these confused me on #152388. Happened to notice the second. Pull Request resolved: #153696 Approved by: https://github.com/Skylion007, https://github.com/malfet
1 parent 3443627 commit 9ccd601

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aten/src/ATen/cpu/vec/functional_base.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ struct VecReduceAllSIMD<float, std::plus<Vectorized<float>>> {
140140
return vaddvq_f32(acc_vec);
141141
}
142142
};
143-
#endif // defined(__aarch64__)
143+
#endif // defined(__aarch64__) && !defined(C10_MOBILE) && !defined(__CUDACC__)
144+
// && !defined(CPU_CAPABILITY_SVE)
144145

145146
#if defined(__aarch64__) && !defined(C10_MOBILE) && !defined(__CUDACC__) && \
146147
defined(CPU_CAPABILITY_SVE256)
@@ -166,7 +167,8 @@ struct VecReduceAllSIMD<float, Op> {
166167
return svlasta(svpfalse(), v);
167168
}
168169
};
169-
#endif // defined(__aarch64__)
170+
#endif // defined(__aarch64__) && !defined(C10_MOBILE) && !defined(__CUDACC__)
171+
// && defined(CPU_CAPABILITY_SVE256)
170172

171173
template <typename scalar_t, typename Op>
172174
inline scalar_t vec_reduce_all(

0 commit comments

Comments
 (0)
0