Re: [OMPI users] Beginner Problem with OpenMPI (MPI_Waitall)

2008-06-27 Thread Joao Marcelo
Thanks Rainer and Matt, your suggestions solved my problem. On Fri, Jun 27, 2008 at 11:44 AM, Matt Hughes wrote: > 2008/6/27 Joao Marcelo : >> Hi, >> >> I'm starting to code with MPI and decided to use openmpi. I'm using >> Ubuntu Linux with GCC version 4.2.3 and OpenMPI 1.2.5 (distribution >> p

Re: [OMPI users] Beginner Problem with OpenMPI (MPI_Waitall)

2008-06-27 Thread Matt Hughes
2008/6/27 Joao Marcelo : > Hi, > > I'm starting to code with MPI and decided to use openmpi. I'm using > Ubuntu Linux with GCC version 4.2.3 and OpenMPI 1.2.5 (distribution > package). The output of "ompi_info -- all" is attached. I'm also > sending a copy of the source code I'm trying to run. On

Re: [OMPI users] Beginner Problem with OpenMPI (MPI_Waitall)

2008-06-27 Thread Rainer Keller
Dear Joao, the problem is that, You do not use the &reqs[i] correctly in the MPI_Send -- reqs[0] will not be initialized; but wait for in MPI_Waitall... Change: rc = MPI_Isend(&a , 1 , MPI_INT , i , 0 , MPI_COMM_WORLD , &reqs[i]); to rc = MPI_Isend(&a , 1 , MPI_INT , i , 0 , MPI_COMM_WORLD ,