Skip to content

Commit 979d2e0

Browse files
committed
small fix
1 parent 4f1aa5b commit 979d2e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/math/float16.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ __device__ inline bool operator>=(const float16& a, const float16& b) {
426426
}
427427

428428
// On ARMv8.2-A CPU
429-
#elif (PADDLE_GNUC_VER >= 71 || PADDLE_CLANG_VER >= 39) && \
430-
defined(PADDLE_NEON_64) && defined(PADDLE_ARM_FP16)
429+
#elif defined(PADDLE_NEON_64) && defined(PADDLE_ARM_FP16) && \
430+
(PADDLE_GNUC_VER >= 71 || PADDLE_CLANG_VER >= 39)
431431
__host__ inline float16 operator+(const float16& a, const float16& b) {
432432
return float16(vaddh_f16(float16_t(a), float16_t(b)));
433433
}

0 commit comments

Comments
 (0)