8000 BUG: Fix building on s390x with clang by jonathan-albrecht-ibm · Pull Request #28393 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix building on s390x with clang #28393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jonathan-albrecht-ibm
Copy link
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
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
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
Member
charris commented Mar 1, 2025

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

@jonathan-albrecht-ibm
Copy link
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.

3 participants
0