BUG: Fix compilation of halffloat with gcc 13.1#23711
Conversation
|
Just to confirm, this is simply that our CI didn't have hardware that would run into it? |
No, it just matter of GCC compiler. |
| #if defined(NPY_HAVE_AVX512FP16) | ||
| __m128d md = _mm_load_sd(&f); | ||
| bits_ = static_cast<uint16_t>(_mm_cvtsi128_si32(_mm_castph_si128(_mm_cvtpd_ph(mf)))); | ||
| bits_ = static_cast<uint16_t>(_mm_cvtsi128_si32(_mm_castph_si128(_mm_cvtpd_ph(md)))); |
There was a problem hiding this comment.
Ah, nvm. I guess this is a fix unrelated to the issue...
There was a problem hiding this comment.
actually its related to this issue but appears after #23435
There was a problem hiding this comment.
NPY_HAVE_AVX512FP16/NPY_HAVE_AVX512_SPR seems to only supported by gcc-13
There was a problem hiding this comment.
IDK, why CI intel_spr_sde_test didn't trigger this bug
There was a problem hiding this comment.
Ah, the missing SPR test issue bit us.
There was a problem hiding this comment.
NPY_HAVE_AVX512_SPR is enabled with gcc >= 12.x. My nightly job picked up this failure with gcc-12 as well. See https://github.com/intel/x86-simd-sort/actions/runs/4879269275/jobs/8705679224.
The intel_spr_sde_test is disabled currently because of an SDE bug. I think what we could do is enable this CI just to build with gcc-12 without running the tests in the SDE.
|
This fixes the build for me. Thanks Sayed. |
|
Hmm, I suspect this has broken the clang wheel builds for Mac on Intel. See https://github.com/numpy/numpy/actions/runs/4885881750/jobs/8720521372. |
closes #23689