FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

BUG: Fix float16-sort failures on 32-bit x86 MSVC (#29908) by charris · Pull Request #29910 · numpy/numpy · GitHub

/ numpy Public

BUG: Fix float16-sort failures on 32-bit x86 MSVC (#29908) - #29910

Merged
charris merged 1 commit into
numpy:maintenance/2.3.xfrom
charris:backport-29908
Oct 9, 2025
Merged

charris merged 1 commit into
numpy:maintenance/2.3.xfrom
charris:backport-29908

Conversation

charris commented Oct 9, 2025

Copy link
Copy Markdown
Member

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 added this to the 2.3.4 release milestone Oct 9, 2025
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 merged commit 5395b1c into numpy:maintenance/2.3.x Oct 9, 2025
75 checks passed
charris deleted the backport-29908 branch October 9, 2025 18:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL