Hi,
1) when client and server both runs in single process like mpiexec -n 1 server, mpiexec -n 1 client.
it works fine, connection between server and client can successfully be built.
2) when client runs in single process but server runs in multiple processes (2 for example) but only rank 0 in server responsible to call mpi_comm_accept, rank 1 of server is just sleeping. Usage is like mpiexec -n 1 client, mpiexec -n 2 server. In this
case, server blocks in mpi_comm_accept, which is expected. However, client blocks in mpi_comm_connect which is not expected.
3) when client runs in multiple processes and server runs in multiple processes, only rank 0 of client responsible for mpi_comm_connect and only rank 0 of server responsible for mpi_comm_accept. In this case, same observation in 2).
May I ask is the hanging of mpi_comm_connect in 2) & 3) expected? Is there a way to build connection successfully when mpi client/server runs under multi-process?
Thanks a lot,
Shuwei