Skip to content

Update x86-simd-sort subproject (5adb334 → fa944ef) - #31908

Merged
seberg merged 1 commit into
numpy:mainfrom
r-devulap:simd-sort
Jul 9, 2026
Merged

Update x86-simd-sort subproject (5adb334 → fa944ef)#31908
seberg merged 1 commit into
numpy:mainfrom
r-devulap:simd-sort

Conversation

@r-devulap

Copy link
Copy Markdown
Member

PR summary

Porting latest x86-simd-sort changes to NumPy: summary of relevant changes:

AI Disclosure

Copilot authored: numpy/x86-simd-sort#231

- Add MSVC/Windows build support with DllMain-based dispatch init
- Add nans_last parameter to all sort/select APIs to decouple
  NaN placement from sort direction
- Add descending parameter to argselect; fix mirror-index bug
- Propagate const T* through argsort/argselect APIs
- Convert CRLF→LF; clang-format-18 pass; CI MSVC job added

@MaanasArora MaanasArora left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you @r-devulap, clearly no issues here, except I'm not sure if this shouldn't be backported so we can also backport the performance fix for descending sorts? Let's check with @seberg (sorry for the ping!)

@seberg

seberg commented Jul 8, 2026

Copy link
Copy Markdown
Member

I am fine with backporting it as well to consider it a perf bugfix, as it seems rather safe. That said, also not too worried if we don't/decide not to.
But I guess this should be very safe as it would have to be a very fun bug in the simd-sort repo to affect us without even using the new paths :).

@seberg seberg added 03 - Maintenance 09 - Backport-Candidate PRs tagged should be backported labels Jul 8, 2026
@seberg
seberg merged commit 46dc548 into numpy:main Jul 9, 2026
88 checks passed
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jul 10, 2026
charris added a commit that referenced this pull request Jul 10, 2026
…31947)

Co-authored-by: Raghuveer Devulapalli <devulapalli.raghuveer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants