What happens when I MPI_Send to a process that has finished?

Posted by nieldw on Stack Overflow See other posts from Stack Overflow or by nieldw
Published on 2010-04-20T18:56:19Z Indexed on 2010/04/20 20:33 UTC
Read the original article Hit count: 140

Filed under:
|
|

What happens when I MPI_Send to a process that has finished?

I am learning MPI, and writing a small sugar distribution-simulation in C. When the factories stop producing, those processes end. When warehouses run empty, they end. Can I somehow tell if the shop's order to a warehouse did not succeed(because the warehouse process has ended) by looking at the return value of MPI_Send? The documentation doesn't mention a specific error code for this situation, but that no error is returned for success.

Can I do:

if (MPI_Send(...)) {
    ...
    /* destination has ended */
    ...
}

And disregard the error code?

Thanks

© Stack Overflow or respective owner

Related posts about c

    Related posts about mpi