[mpich-discuss] How to terminate MPI_Comm_accept

Balaji, Pavan balaji at anl.gov
Wed Oct 8 14:28:59 CDT 2014


Are you doing MPI_Comm_dup while the other thread is doing MPI_Comm_accept?

  — Pavan

On Oct 8, 2014, at 2:25 PM, Roy, Hirak <Hirak_Roy at mentor.com> wrote:

> Hi Pavan,
>  
> Does not work.
> Crash in nemesis.
> Sock hangs in MPI_Recv/MPI_Send
>  
>  
> Thanks,
> Hirak
>  
>   MPI_Comm newComm ;
>   MPI_Comm dupCom ;
>   MPI_Comm_dup (MPI_COMM_SELF, &dupCom);
>   MPI_Comm_connect (m_serverPort.c_str(), MPI_INFO_NULL, 0, dupCom, &newComm);
>   Log ("Connect to Self");
>   int val = 0 ; 
>   MPI_Request req ;
>   MPI_Send(&val, 1, MPI_INT, 0, MPI_MSG_TAG_SHUTDOWN, newComm);
>   Log ("Successful");
>   MPI_Comm_disconnect(&newComm);
>  
>  
>  
>  
> On Oct 8, 2014, at 11:41 AM, Roy, Hirak <Hirak_Roy at mentor.com> wrote:
> > Is there any way to come out of the blocking accept?
>  
> You can dup MPI_COMM_SELF and do the connect using that other communicator.
>  
>   — Pavan
>  
> --
>  
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss

--
Pavan Balaji  ✉️
http://www.mcs.anl.gov/~balaji

_______________________________________________
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