summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2016-09-24 12:45:01 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2016-09-24 13:15:09 +0200
commita860256f88c8ebb3f74eb7e90ee89f05dedf3a7c (patch)
tree5aff93e33860517e465bf3f6f1d06c2929c4a436 /numpy/core/setup_common.py
parent37740eb8c09dbc6b074aa10298401f994cd7fa55 (diff)
downloadnumpy-a860256f88c8ebb3f74eb7e90ee89f05dedf3a7c.tar.gz
MAINT: add runtime check for AVX macros
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r--numpy/core/setup_common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index 2a42a0638..5e1396e6b 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -142,6 +142,8 @@ OPTIONAL_FUNCTION_ATTRIBUTES = [('__attribute__((optimize("unroll-loops")))',
'attribute_optimize_opt_3'),
('__attribute__((nonnull (1)))',
'attribute_nonnull'),
+ ('__attribute__((target ("avx")))',
+ 'attribute_target_avx'),
('__attribute__((target ("avx2")))',
'attribute_target_avx2'),
]