Re: [OMPI users] Possible buffer overflow on Recv rank

2019-03-28 Thread George Bosilca
If I add a loop to make sure I account for all receives on the master, and correctly set the tags a basic application based on your scheme seems to work as intended. Can you post a reproducer for you issue instead ? Thanks, George. On Thu, Mar 28, 2019 at 6:52 AM carlos aguni wrote: > Hi Gil

Re: [OMPI users] Possible buffer overflow on Recv rank

2019-03-28 Thread carlos aguni
Hi Gilles. Thank you for ur reply. Here's some code: // MASTER NODE printf("[%s][RECV] src=%d tag=%d\n", processor_name, src, hashtag); fflush(stdout); MPI_Request req; rs = MPI_Irecv(buf, count, MPI_DOUBLE, src, hashtag, comm, &req); MPI_Wait(&req, status); printf("[%s][RECV] src=%d tag=%d OK\n"

Re: [OMPI users] Possible buffer overflow on Recv rank

2019-03-27 Thread Gilles Gouaillardet
Carlos, can you post a trimmed version of your code that evidences the issue ? Keep in mind that if you want to write MPI code that is correct with respect to the standard, you should assume MPI_Send() might block until a matching receive is posted. Cheers, Gilles Sent from my iPod > On Ma

Re: [OMPI users] Possible buffer overflow on Recv rank

2019-03-27 Thread carlos aguni
Not "MPI_Send from 0".. MPI_Send from 1 to 0 MPI_Send from 7 to 0 And so on.. On Wed, Mar 27, 2019, 8:43 AM carlos aguni wrote: > Hi all. > > I've an MPI application in which at one moment one rank receives a slice > of an array from the other nodes. > Thing is that my application hangs there. >