On Wednesday, August 7, 2013 at 7:16 PM, Matthieu Dorier wrote:
Ah great, thanks!Matthieu----- Mail original -----De: "Rajeev Thakur" <thakur@mcs.anl.gov>Envoyé: Mercredi 7 Août 2013 16:34:18Objet: Re: [mpich-discuss] Semantics of MPI_CancelMPI_Cancel will succeed only if the receive can be canceled, i.e.,not part of the message has already been received into the receivebuffer. So, if the cancel succeeds, the send will match the nextreceive. You have to check the error code returned by cancel.On Aug 7, 2013, at 4:18 PM, Matthieu Dorier wrote:So either there is no way to know which MPI_Send will be matched,since even withMPI_Irecv(req); MPI_Test(flag,req); if(!flag) {MPI_Cancel(req)}MPI_Recv()the MPI_Irecv could have completed between the MPI_Test and theMPI_Cancel...Or does the content of the MPI_Irecv, which is supposed to havebeen put in the user-provided buffer, gets transferred into thebuffer of the next MPI_Recv upon cancellation of the MPI_Irecv?Thanks,Matthieu----- Mail original -----De: "Rajeev Thakur" <thakur@mcs.anl.gov>Envoyé: Mercredi 7 Août 2013 16:10:02Objet: Re: [mpich-discuss] Semantics of MPI_CancelYou canceled the recv, not the send. The send will still gothroughand match the first available receive that can be matched.On Aug 7, 2013, at 3:25 PM, Matthieu Dorier wrote:Hi,Suppose process 0 does the followingMPI_Irecv(...req)MPI_Cancel(req)MPI_Recvand process 1 doesMPI_SendMPI_SendDoes process 0 receives the data from the first or the secondMPI_Send?(I'd tend to say the second, but I'd like a confirmation).Thanks!Matthieu DorierPhD student at ENS Cachan Brittany and IRISA_______________________________________________discuss mailing list discuss@mpich.orgTo manage subscription options or unsubscribe:_______________________________________________discuss mailing list discuss@mpich.orgTo manage subscription options or unsubscribe:_______________________________________________discuss mailing list discuss@mpich.orgTo manage subscription options or unsubscribe:_______________________________________________discuss mailing list discuss@mpich.orgTo manage subscription options or unsubscribe:_______________________________________________discuss mailing list discuss@mpich.orgTo manage subscription options or unsubscribe: