Re: [OMPI users] possible mismatch between MPI_Iprobe and MPI_Recv?

2010-11-23 Thread Riccardo Murri
Hi Jeff, thanks for the explanation - I should have read the MPI standard more carefully. In the end, I traced the bug down to using standard send instead of synchronous send, so it had nothing to do with the receiving side at all. Best regards, Riccardo

Re: [OMPI users] possible mismatch between MPI_Iprobe and MPI_Recv?

2010-11-22 Thread Jeff Squyres
On Nov 21, 2010, at 1:46 PM, Riccardo Murri wrote: > I'm using code like this: > > MPI_Iprobe(MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &flag, &status); > if(flag) { >int size; >MPI_Get_count(&status, MPI_BYTE, &size); >void* row = xmalloc(size); >/* ... */ >MPI_Recv(row,

[OMPI users] possible mismatch between MPI_Iprobe and MPI_Recv?

2010-11-21 Thread Riccardo Murri
Hello, I'm trying to debug a segfaulting application; the segfault does not happen consistently, however, so my guess is that it is due to some memory corruption problem which I'm trying to find. I'm using code like this: MPI_Iprobe(MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &flag, &status);