v7.0
Highlights
OpenMP Parallelization:
qsort, argsort and keyvalue_qsort routines now support multi-threading with OpenMP. This speeds up sorting medium to large arrays by 3-4x on both AVX-512 and AVX2. OpenMP is not enabled by default and needs to configured with Meson while building. Please refer to the README for details.
This feature has been contributed upstream to NumPy and is expected to be included in the upcoming 2.3.0 release. As with x86-simd-sort, OpenMP support in NumPy is not enabled by default; you will need to configure the Meson build system to enable OpenMP when building NumPy.
Miscellaneous
- Accelerate
qsort,qselectandpartial_qsortfor_Float16on ICX. - Resolved a performance regression for 16-bit data types caused by the compiler dynamically allocating constant arrays.
- Improve
argsortperformance for already sorted arrays by adding early detection.
List of PR's merged
- Fix for MMX instructions being generated without emms by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/172
- Expose C-API's for some of the keyvalue qsort by @r-devulap in https://github.com/intel/x86-simd-sort/pull/173
- Fix and Cleanup C API code by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/181
- Fix kvsort/kvselect nan behavior and added tests for mixed nan/inf arrays by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/178
- Add defensive EMMS instructions to each SIMD sort function by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/183
- Hopefully fix scorecard.yml actions by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/186
- Update readme file for static methods by @r-devulap in https://github.com/intel/x86-simd-sort/pull/185
- Fix avx512fp16 build by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/187
- Change scorecard runner to ubuntu-latest by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/188
- Change 16-bit swizzle from vector to C arrays by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/190
- Adds OpenMP to qsort, should also improve test speed a bit by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/179
- Readme fix: argsort doesn't do 16-bit by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/192
- Fixes some tests/bugs, and adds a build with sanitizers, add ASAN CI run by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/182
- Add OpenMP support to argsort by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/195
- Add early exit for argsort if array is already sorted by @r-devulap in https://github.com/intel/x86-simd-sort/pull/197
- Avoid use of _mm512_set_epi16 for reversing 16-bit vectors by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/198
- Add Meson dependency declaration for use as a subproject by @blazingpretzel in https://github.com/intel/x86-simd-sort/pull/199
- Enable fp16 nonnative support for dynamic dispatch, make more ergonomic for static dispatch by @sterrettm2 in https://github.com/intel/x86-simd-sort/pull/200
- New helper function to determine number of threads when using openMP by @r-devulap in https://github.com/intel/x86-simd-sort/pull/203
- Prep for v7.0 and refactor openMP build flags by @r-devulap in https://github.com/intel/x86-simd-sort/pull/204
New Contributors
- @blazingpretzel made their first contribution in https://github.com/intel/x86-simd-sort/pull/199
Full Changelog: https://github.com/intel/x86-simd-sort/compare/v6.0...v7.0