From 1ffce8c0ae57c80121e45e6d7914a21d2be158fa Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Fri, 16 Nov 2018 13:46:36 +0000 Subject: [PATCH] fix build error on noavx test=develop --- paddle/fluid/operators/math/jit_kernel_exp.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paddle/fluid/operators/math/jit_kernel_exp.cc b/paddle/fluid/operators/math/jit_kernel_exp.cc index f2cb8fb74e..f26815300d 100644 --- a/paddle/fluid/operators/math/jit_kernel_exp.cc +++ b/paddle/fluid/operators/math/jit_kernel_exp.cc @@ -269,6 +269,8 @@ REGISTER_JITKERNEL(vtanh, VTanhKernel); namespace detail { +#ifdef __AVX__ + #define ALIGN32 __attribute__((aligned(32))) #define _PS256_CONST(Name, Val) \ @@ -398,6 +400,7 @@ __m256 ExpAVX(__m256 x) { y = _mm256_mul_ps(y, pow2n); return y; } +#endif #ifdef __AVX2__ __m256 ExpAVX2(__m256 x) { -- GitLab