summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorGengxin Xie <gengxin.xie@intel.com>2020-04-02 16:19:39 +0800
committerGengxin Xie <gengxin.xie@intel.com>2020-04-03 11:09:38 +0800
commit925477022b56758510d6c398e441c07d8488704d (patch)
tree3adbc22dd92b58bcf1a47d35f0ce340648ac20ec /numpy
parent204af711d0dd29307804669c6bad44be323bec75 (diff)
downloadnumpy-925477022b56758510d6c398e441c07d8488704d.tar.gz
MAINT: Skip compiling AVX512_exp_DOUBLE when clang <= 10.0.0
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/umath/simd.inc.src4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/src/umath/simd.inc.src b/numpy/core/src/umath/simd.inc.src
index 94828c459..501100465 100644
--- a/numpy/core/src/umath/simd.inc.src
+++ b/numpy/core/src/umath/simd.inc.src
@@ -396,6 +396,7 @@ static NPY_INLINE int
run_unary_avx512f_exp_DOUBLE(char **args, npy_intp const *dimensions, npy_intp const *steps)
{
#if defined HAVE_ATTRIBUTE_TARGET_AVX512F_WITH_INTRINSICS && defined NPY_HAVE_SSE2_INTRINSICS
+#if !(defined(__clang__) && (__clang_major__ < 10 || (__clang_major__ == 10 && __clang_minor__ < 1)))
if (IS_OUTPUT_BLOCKABLE_UNARY(sizeof(npy_double), 64)) {
AVX512F_exp_DOUBLE((npy_double*)args[1], (npy_double*)args[0], dimensions[0], steps[0]);
return 1;
@@ -403,6 +404,7 @@ run_unary_avx512f_exp_DOUBLE(char **args, npy_intp const *dimensions, npy_intp c
else
return 0;
#endif
+#endif
return 0;
}
@@ -2703,6 +2705,7 @@ static NPY_GCC_OPT_3 NPY_GCC_TARGET_@ISA@ void
* exp(x) = 2^m(2^(j/32) + 2^(j/32)p(r));
*/
#if defined HAVE_ATTRIBUTE_TARGET_AVX512F_WITH_INTRINSICS
+#if !(defined(__clang__) && (__clang_major__ < 10 || (__clang_major__ == 10 && __clang_minor__ < 1)))
static NPY_GCC_OPT_3 NPY_GCC_TARGET_AVX512F void
AVX512F_exp_DOUBLE(npy_double * op,
npy_double * ip,
@@ -2835,6 +2838,7 @@ AVX512F_exp_DOUBLE(npy_double * op,
}
}
#endif
+#endif
/**begin repeat
* #TYPE = CFLOAT, CDOUBLE#