Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPI_Wait hangs forever when using comm dup in MPI call #31

Open
upperwal opened this issue May 15, 2018 · 0 comments
Open

MPI_Wait hangs forever when using comm dup in MPI call #31

upperwal opened this issue May 15, 2018 · 0 comments

Comments

@upperwal
Copy link
Owner

The following code will hang on MPI_Wait call as MPI_Irecv and MPI_Send are using duplicate communicator. This is happening in MPI_Send, MPI_Recv, MPI_Isend and MPI_Irecv implementations.

MPI_Comm rep_comm;
MPI_Comm_dup(MPI_COMM_WORLD, &rep_comm);

MPI_Irecv(recv, 100, MPI_INT, 1 - rank, 0, rep_comm, req);
MPI_Send(send, 100, MPI_INT, 1 - rank, 0, MPI_COMM_WORLD);

MPI_Status stat;
MPI_Wait(req, &stat);

Possible Solution: Use

MPI_Comm *comm_to_use;

//PMPI_Comm_dup(node.rep_mpi_comm_world, &comm_to_use);
comm_to_use = &(node.rep_mpi_comm_world);

PMPI_Irecv(buf, ... , *comm_to_use, req);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant