Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] MPI_Spawn error: Data unpack would read past end of buffer" (-26) instead of "Success"
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2011-09-07 14:07:34

On Sep 7, 2011, at 4:03 PM, Simone Pellegrini wrote:

> By the way, I solved the problem by invoking MPI_Comm_disconnect on the inter-communicator I receive from the spawning task (MPI_Finalize is not enough). This makes the spawned tasks to close the parent communicator and terminate.

This is correct MPI behavior.

Just having spawned processes call Finalize is not sufficient, because they are still "connected" to the parent(s) who spawned them, meaning that you can eventually run out of resources.

Having your children disconnect before finalizing is definitely a good idea.

Jeff Squyres
For corporate legal information go to: