-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[BUG]: Numpy test failure on ppc64le architecture #3710
Comments
Why is there a
That is practically asking for trouble. |
Can't we make these float arrays and then compare with |
Is it exercising |
Isn’t this what tests are for? :) |
Do we know why the behaviour changed? |
Is this a change in NumPy on that arch? (in other words, does 1.21 produce the old behavior? Do we know?) |
The package builds on Fedora 35 but fails on rawhide. They have different versions of GCC, numpy, and other thirds…
|
FYI, NumPy is very broken on ppc64le: $ docker run --platform linux/ppc64le --rm -it continuumio/miniconda3:latest bash
# conda install numpy
# python >>> import numpy as np
>>> np.array([1., 2., 3., 1.00001]).astype(np.float32)
array([0.0000000e+00, 0.0000000e+00, 0.0000000e+00, 4.5436204e+36],
dtype=float32) No pybind11 required. ;) |
Whoa! OMG. Close this? |
Ping @susilehtola |
See numpy/numpy#20964 for more info. |
Those 'NumPy' bugs are QEMU bugs. Fedora builds on real ppc64le hardware, and your sample outputs Rawhide/F36 is on GCC 12 though, so it's still possibly a compiler bug. |
Similar bugs in Cython and cffi on ppc64le. It possibly has to do with the switch to IEEE long double; is pybind11 doing anything special to handle that or is it likely a NumPy issue? Note, none of NumPy's tests fail on ppc64le. |
@susilehtola there were some fixes in gcc that fixed Cython, and partially cffi, so could you try rebuilding pybind11? |
The package indeed built now without problems on all architectures. Thanks! |
Required prerequisites
Problem description
After applying #3682, pybind 2.9.1 successfully builds with numpy 1.22.0 on several Fedora architectures.
https://koji.fedoraproject.org/koji/taskinfo?taskID=82606547
The tests fail, however, on ppc64le:
Reproducible example code
No response
The text was updated successfully, but these errors were encountered: