Skip to content

Remove #error and fallback to AVX2 when compiled with just -mavx512f for static methods#212

Merged
r-devulap merged 1 commit into
numpy:mainfrom
r-devulap:buildfix-knl
Sep 9, 2025
Merged

Remove #error and fallback to AVX2 when compiled with just -mavx512f for static methods#212
r-devulap merged 1 commit into
numpy:mainfrom
r-devulap:buildfix-knl

Conversation

@r-devulap

Copy link
Copy Markdown
Member

See numpy/numpy#29560 for build failure on KNL.

Removed the error directive that prevented use of AVX512F alone, allowing AVX2 support even when AVX512F is defined, which improves compatibility on systems with mixed instruction set support.

@mgorny

mgorny commented Sep 6, 2025

Copy link
Copy Markdown

Thank you. I can confirm that after applying this diff to the file in NumPy, it builds for me with the relevant compiler flags.

@r-devulap r-devulap merged commit fe2b5bf into numpy:main Sep 9, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants