summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
authorRaghuveer Devulapalli <raghuveer.devulapalli@intel.com>2021-05-19 13:26:22 -0700
committerRaghuveer Devulapalli <raghuveer.devulapalli@intel.com>2021-05-19 13:26:22 -0700
commit9ee4ed31de1c582366e44c488047b4e9432682e9 (patch)
tree8d238a91b9031023255736e8708671018f52cf85 /numpy/core/setup_common.py
parent3a61a14b46535d1ce552d06f1be8172c0fc233c4 (diff)
downloadnumpy-9ee4ed31de1c582366e44c488047b4e9432682e9.tar.gz
BUG: Fix duplicate variable names in compiler check for AVX512_SKX
The code that checks for AVX512 SKX intrisics compiler support has a bug which always causes the check to fail and hence disables code that used AVX512_SKX features. Introduced in https://github.com/numpy/numpy/pull/16871/.
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r--numpy/core/setup_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index 378d93c06..ed3172da8 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -194,7 +194,7 @@ OPTIONAL_FUNCTION_ATTRIBUTES_WITH_INTRINSICS = [('__attribute__((target("avx2,fm
('__attribute__((target ("avx512f,avx512dq,avx512bw,avx512vl,avx512cd")))',
'attribute_target_avx512_skx_with_intrinsics',
'__mmask8 temp = _mm512_fpclass_pd_mask(_mm512_set1_pd(1.0), 0x01);\
- __m512i temp = _mm512_castps_si512(_mm512_set1_ps(1.0));\
+ __m512i unused_temp = _mm512_castps_si512(_mm512_set1_ps(1.0));\
_mm_mask_storeu_epi8(NULL, 0xFF, _mm_broadcastmb_epi64(temp))',
'immintrin.h'),
]