diff options
| author | Raghuveer Devulapalli <raghuveer.devulapalli@intel.com> | 2021-10-19 13:57:29 -0700 |
|---|---|---|
| committer | Raghuveer Devulapalli <raghuveer.devulapalli@intel.com> | 2022-01-14 10:28:39 -0800 |
| commit | cf60656b7551e37d21ccf30fee770a3417e59373 (patch) | |
| tree | cb616a2f4f31bc37d94330f0e92879953ba12eb5 | |
| parent | b96d2e430a42ef48447f29bdfad1c3ba3cca980f (diff) | |
| download | numpy-cf60656b7551e37d21ccf30fee770a3417e59373.tar.gz | |
MAINT: Use _mm512_cmp_ps_mask instead of _mm512_cmpunord_ps_mask
Workaround for missing intrinsic in older gcc
| -rw-r--r-- | numpy/core/src/npysort/qsort-32bit-avx512.h.src | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/npysort/qsort-32bit-avx512.h.src b/numpy/core/src/npysort/qsort-32bit-avx512.h.src index 1056b0bd5..cd0e08b6d 100644 --- a/numpy/core/src/npysort/qsort-32bit-avx512.h.src +++ b/numpy/core/src/npysort/qsort-32bit-avx512.h.src @@ -530,7 +530,7 @@ npy_intp replace_nan_with_inf(npy_float* arr, npy_intp arrsize) loadmask = (0x0001 << arrsize) - 0x0001; } __m512 in_zmm = _mm512_maskz_loadu_ps(loadmask, arr); - __mmask16 nanmask = _mm512_cmpunord_ps_mask(in_zmm, in_zmm); + __mmask16 nanmask = _mm512_cmp_ps_mask(in_zmm, in_zmm, _CMP_NEQ_UQ); nan_count += _mm_popcnt_u32((npy_int) nanmask); _mm512_mask_storeu_ps(arr, nanmask, ZMM_MAX_FLOAT); arr += 16; |
