[mpich-discuss] MPI_Comm_split and end with Finalize
K. N. Ramachandran
knram06 at gmail.com
Tue Mar 1 09:29:37 CST 2016
Hi Lena,
On Mon, Feb 29, 2016 at 7:04 PM, Oden, Lena <loden at anl.gov> wrote:
> A few more points from my side to MPI_Comm_disconnect
>
> 1.) MPI_Comm_disconnect should be called from all processes in the
> communicator, it is a collective operation
> 2.) You have to disconnect/ all communicators your server is connected to.
>
> Insofar as I understand your problem: If you have connected multiple
> clients and the server into one intra-communicator,
> you first should call com-split to get a communicator without the server.
>
> However, you still have to disconnect the old communicator (on all
> processes) - called "intra comm” in your example.
>
> Besides, you also should disconnect all inter-communicator(s) created with
> MPI_Comm_connect and MPI_Comm_accept.
>
> Lena
>
Thank you so much for this input. With those changes, it works now and the
server process terminates at the Finalize call. I had been calling
Disconnect only on the intra-communicators earlier. Calling it on the
inter-communicators and doing the same thing on the client, did the trick
:).
Very useful and interesting. Thanks again.
Regards,
K.N.Ramachandran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20160301/556395b7/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss
More information about the discuss
mailing list