From 979d2e0b092a1378290ddae421f8793d00fd0938 Mon Sep 17 00:00:00 2001 From: Kexin Zhao Date: Thu, 16 Nov 2017 10:05:30 -0800 Subject: [PATCH] small fix --- paddle/math/float16.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/math/float16.h b/paddle/math/float16.h index 9c06b423e..3275546e6 100644 --- a/paddle/math/float16.h +++ b/paddle/math/float16.h @@ -426,8 +426,8 @@ __device__ inline bool operator>=(const float16& a, const float16& b) { } // On ARMv8.2-A CPU -#elif (PADDLE_GNUC_VER >= 71 || PADDLE_CLANG_VER >= 39) && \ - defined(PADDLE_NEON_64) && defined(PADDLE_ARM_FP16) +#elif defined(PADDLE_NEON_64) && defined(PADDLE_ARM_FP16) && \ + (PADDLE_GNUC_VER >= 71 || PADDLE_CLANG_VER >= 39) __host__ inline float16 operator+(const float16& a, const float16& b) { return float16(vaddh_f16(float16_t(a), float16_t(b))); } -- GitLab