-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error when running tests with MPI #18
Comments
Fixed, downgrading NumPy from 1.24 to 1.21 fixed the issue (although it should work also with up to at least 1.23.5) |
Thank you! It sounds like you've tracked down the release notes item related to this. Do you know the recommended way to fix this error for 1.24? I feel we shall fix it before the knowledge and tooling is forgotten. |
In previous versions (at least since 1.21.0, I didn't check in earlier versions), there was a import numpy as np
k = [np.array([[0.]], dtype=np.float32), np.array([[ 0. ], [ 0.02454369], [ 0.04908739], [ 0.07363108],\
[ 0.09817477], [ 0.12271847], [ 0.14726216], [ 0.17180586],\
[ 0.19634955], [ 0.22089323], [ 0.24543694], [ 0.26998064],\
[ 0.2945243 ], [ 0.319068 ], [ 0.34361172], [ 0.3681554 ],\
[ 0.3926991 ], [ 0.4172428 ], [ 0.44178647], [ 0.46633017],\
[ 0.49087387], [ 0.5154176 ], [ 0.5399613 ], [ 0.5645049 ],\
[ 0.5890486 ], [ 0.6135923 ], [ 0.638136 ], [ 0.66267973],\
[ 0.68722343], [ 0.7117671 ], [ 0.7363108 ], [ 0.7608545 ],\
[-0.7853982 ], [-0.7608545 ], [-0.7363108 ], [-0.7117671 ],\
[-0.68722343], [-0.66267973], [-0.638136 ], [-0.6135923 ],\
[-0.5890486 ], [-0.5645049 ], [-0.5399613 ], [-0.5154176 ],\
[-0.49087387], [-0.46633017], [-0.44178647], [-0.4172428 ],\
[-0.3926991 ], [-0.3681554 ], [-0.34361172], [-0.319068 ],\
[-0.2945243 ], [-0.26998064], [-0.24543694], [-0.22089323],\
[-0.19634955], [-0.17180586], [-0.14726216], [-0.12271847], [-0.09817477],\
[-0.07363108], [-0.04908739], [-0.02454369]], dtype=np.float32),\
np.array([[ 0. , 0.02454369, 0.04908739, 0.07363108, 0.09817477,\
0.12271847, 0.14726216, 0.17180586, 0.19634955, 0.22089323,\
0.24543694, 0.26998064, 0.2945243 , 0.319068 , 0.34361172,\
0.3681554 , 0.3926991 , 0.4172428 , 0.44178647, 0.46633017,\
0.49087387, 0.5154176 , 0.5399613 , 0.5645049 , 0.5890486 ,\
0.6135923 , 0.638136 , 0.66267973, 0.68722343, 0.7117671 ,\
0.7363108 , 0.7608545 , -0.7853982 ]], dtype=np.float32)]
print(k)
print([np.shape(ki) for ki in k])
mask = np.bitwise_and.reduce([ki == 0 for ki in k]) # Raises a deprecation warning up to 1.23.5, gives value error above
mask = np.bitwise_and.reduce(np.array([ki == 0 for ki in k], dtype=object)) # Works at least from 1.21.0
print(mask, mask.shape) |
Hello, I'm trying to run tests for the library with MPI on a cluster.
Running
python runtests.py --single --pdb --capture=no
(this happens also for multiple ranks), when testingnbkit
I get this error:Does anybody have an idea why this happens?
The text was updated successfully, but these errors were encountered: