Skip to content

Conversation

charris
Copy link
Member

@charris charris commented Oct 9, 2025

Backport of #29908.

The failures are triggered when the Intel x86 sort AVX‑512 kernels for 16‑bit are enabled at build time and the CPU/OS also supports them. A quick look at the zmm_vector<float16>::ge(reg_t, reg_t) seems to not correctly generate the instructions for it.

This patch does not actually fix the underlying bug; instead, it disables these kernels on 32‑bit MSVC builds as a stop‑gap, since the issue requires further investigation and an upstream fix. Note: Newer NumPy releases may drop the entire AVX‑512 support on 32‑bit for all compilers and will enable at most AVX2 as part of gh-28896

Closes #29808.

The failures are triggered when the Intel x86 sort AVX‑512 kernels for 16‑bit
are enabled at build time and the CPU/OS also supports them. A quick look at the
`zmm_vector<float16>::ge(reg_t, reg_t)` seems to not correctly generate the instructions for it.

This patch does not actually fix the underlying bug; instead, it disables these
kernels on 32‑bit MSVC builds as a stop‑gap, since the issue requires further
investigation and an upstream fix. Note: Newer NumPy releases may drop the entire
AVX‑512 support on 32‑bit for all compilers and will enable at most AVX2 as part
of numpygh-28896
@charris charris added this to the 2.3.4 release milestone Oct 9, 2025
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs component: SIMD Issues in SIMD (fast instruction sets) code or machinery labels Oct 9, 2025
@charris charris merged commit 5395b1c into numpy:maintenance/2.3.x Oct 9, 2025
75 checks passed
@charris charris deleted the backport-29908 branch October 9, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug 08 - Backport Used to tag backport PRs component: SIMD Issues in SIMD (fast instruction sets) code or machinery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants