[mpich-discuss] What is the best way to connect to a spawned process?
Mccall, Kurt E. (MSFC-EV41)
kurt.e.mccall at nasa.gov
Wed Dec 4 13:31:03 CST 2019
Hi,
My job creates 10 processes, and the rank 0 one spawns a distinct process P to function as a master. I'd like to share P's inter-communicator with the other 9 processes, but it seems that I can't pass it directly to them through function arguments to those processes (very weird errors happen involving the inter-communicator). What is an efficient way to connect all 10 processes to P? I've looked into MPI_Open_port / MPI_Comm_accept / MPI_Comm_connect, but was wondering if there is more streamlined way.
(I can't make rank 0 become the master directly, due to the peculiarities of my PBS/Torque node allocations).
Thanks,
Kurt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20191204/9bf2017e/attachment.html>
More information about the discuss
mailing list