Skip to content

Commit

Permalink
Update after NumPy 2.0+ removal of ndarray.newbyteorder
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed Nov 18, 2024
1 parent 51a12d9 commit 277d5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyspod/utils/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _blockdist(N, size, rank):
def allreduce(data, comm):
if comm is not None:
MPI = _get_module_MPI(comm)
data = data.newbyteorder('=')
data = data.view(data.dtype.newbyteorder('='))
data_reduced = np.zeros_like(data)
comm.Barrier()
comm.Allreduce(data, data_reduced, op=MPI.SUM)
Expand Down

0 comments on commit 277d5de

Please sign in to comment.