print_with_rank("sending the result of probe to rank=%i" % request_from)
comm.send(("Probe_result",entities),dest=request_from,tag=2) |
print_with_rank("sent done. probe to rank=%i" % request_from)...
Subvolume.py (Rank 5) sending the result of probe to rank=4 *
Subvolume.py (Rank 3) received, in update_request: Further_Probe
Subvolume.py (Rank 5) sent done. probe to rank=4 *
Subvolume.py (Rank 4) sending the result of probe to rank=3 @
Subvolume.py (Rank 3) sending the result of probe to rank=4 @
El 27/12/2013 21:02, <btorben...@gmail.com> escribió:
>
> Thanks for your prompt answer.
>
> I will first try the buffer because I suspect there might be a problem there: The code runs fine for "small" test cases but fails suddenly ("hangs") when I try to scale it up. Even when scaling it up just a little bit... To me this indicates that the code itself must be correct but that mpi4py cannot hold the messages until a suitable recv() is issues on the receiver. Is this analysis correct? Is there a way to find out if this is really the problem? I have two different versions of my code and both have the same problem: when scaling up it hangs. I think I fetched all potential deadlocks by outputting lots of information (print!). Any suggestions of how to find out if it is a deadlock or a buffer problem? (As said, with ssend the code directly hangs)
>
The ssend behavior signals a buffering issue. The plain send is not guaranteed to buffer, a bunch of small messages are usually buffered, but at some point it blocks. An that does not mean yo dont have a deadlock.
You can try to move to use bsend, but at scale you may need to provide large buffer and have memory issues.
If you.really go.for the MPI way, you need to rework your code. MPI is not designed to have one master process send a millon messages in on shot to a bunch of workers.
> --
> You received this message because you are subscribed to the Google Groups "mpi4py" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mpi4py+un...@googlegroups.com.
> To post to this group, send email to mpi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/mpi4py.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mpi4py/544ea264-d614-4e27-be7a-db7a4558fbd9%40googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.