diff options
author | Raghuveer Devulapalli <raghuveer.devulapalli@intel.com> | 2019-03-28 15:07:35 -0700 |
---|---|---|
committer | Raghuveer Devulapalli <raghuveer.devulapalli@intel.com> | 2019-04-19 10:47:15 -0700 |
commit | 651e03c0019d4c4c6ca8c43cb7d7c0d344a72cc1 (patch) | |
tree | f3d3333fa3427ba350344895d6bb850b8d5ca3ff /numpy/core/setup.py | |
parent | f9d14627b36bc25aace6c78e6e5f6fe68c08bfcb (diff) | |
download | numpy-651e03c0019d4c4c6ca8c43cb7d7c0d344a72cc1.tar.gz |
BUG: Adding macro HAVE_ATTRIBUTE_TARGET_@ISA@_WITH_INTRINSICS
1) use __builtin_cpu_supports("avx512f") only for gcc ver >= 5
2) Introduced two new macro's:
HAVE_ATTRIBUTE_TARGET_@ISA@_WITH_INTRINSICS for ensuring compiler can
compile functions that use intrinsics and are compiled with avx2/avx512f
attributes
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 2bcd17f27..9f1ecf358 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -171,6 +171,11 @@ def check_math_capabilities(config, moredefs, mathlibs): if config.check_gcc_function_attribute(dec, fn): moredefs.append((fname2def(fn), 1)) + for dec, fn, code, header in OPTIONAL_FUNCTION_ATTRIBUTES_WITH_INTRINSICS: + if config.check_gcc_function_attribute_with_intrinsics(dec, fn, code, + header): + moredefs.append((fname2def(fn), 1)) + for fn in OPTIONAL_VARIABLE_ATTRIBUTES: if config.check_gcc_variable_attribute(fn): m = fn.replace("(", "_").replace(")", "_") |