allreduce changed in 2.0.0?
Issue #59
closed
We had been doing something like this:
if my_proc_has_unique_element():
haveElement=1
else:
haveElement=0
global_have_element, owning_proc = comm.allreduce(haveElement, op=MPI.MAXLOC)
now with mpi4py 2.0.0 I get TypeError: 'int' object is not iterable, and if I set haveElement to an array I don't get the right output. Is has the api changed?
Thanks, Chris
Comments (2)
-
reporter -
reporter - changed status to closed
user error
- Log in to comment
Grrr. The call to allreduce was incorrect anyway, should have been (haveElement, MPI.COMM_WORLD.rank) as first arg. User error. Sorry.