Skip to content

BUG: Fix building on s390x with clang#28393

Merged
charris merged 1 commit intonumpy:mainfrom
linux-on-ibm-z:main-vec-fp-operators-clang-s390x
Mar 1, 2025
Merged

BUG: Fix building on s390x with clang#28393
charris merged 1 commit intonumpy:mainfrom
linux-on-ibm-z:main-vec-fp-operators-clang-s390x

Conversation

@jonathan-albrecht-ibm
Copy link
Copy Markdown
Contributor

clang on s390x did not have implementations of vector logical operators such as vec_and, vec_or and vec_xor in vecintrin.h until VEC == 10305 and this caused compile errors. Add implementations to allow the build to complete.

Currently, clang >= 19 is required for all tests to pass because that is the minimum version supported by highway on s390x with clang.

clang on s390x did not have implementations of vector logical
operators such as vec_and, vec_or and vec_xor in vecintrin.h
until __VEC__ == 10305 which caused compile errors. Add
implementations to allow the build to complete.

Currently, clang >= 19 is required for all tests to pass because
that is the minimum version supported by highway on s390x with clang.
@jonathan-albrecht-ibm jonathan-albrecht-ibm marked this pull request as draft February 26, 2025 18:22
@jonathan-albrecht-ibm jonathan-albrecht-ibm marked this pull request as ready for review February 26, 2025 23:55
@jonathan-albrecht-ibm
Copy link
Copy Markdown
Contributor Author

From looking at other PR checks I'm guessing that some qemu builds randomly fail? I ran a ppc64le qemu build locally and it failed the same way a few times but eventually I got a build to complete and all tests passed.

@ngoldbaum
Copy link
Copy Markdown
Member

I ran a ppc64le qemu build locally and it failed the same way a few times but eventually I got a build to complete and all tests passed.

There's a new failure that popped up in the last few days: #28405

Sorry for the confusion. The NumPy CI is sufficiently complicated it's rare we go more than a couple of weeks between random breakages.

@charris charris merged commit dfb054e into numpy:main Mar 1, 2025
67 of 69 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting a code review to Completed in NumPy first-time contributor PRs Mar 1, 2025
@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Mar 1, 2025
@charris
Copy link
Copy Markdown
Member

charris commented Mar 1, 2025

Thanks @jonathan-albrecht-ibm . Let's give it a shot.

@jonathan-albrecht-ibm
Copy link
Copy Markdown
Contributor Author

Thanks for reviewing and merging @charris!

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

4 participants