Re: [OMPI users] Open MPI data transfer error

2010-11-06 Thread Jed Brown
On Sat, Nov 6, 2010 at 18:00, Jack Bryan wrote: > Thanks, > > About my MPI program bugs: > > I used GDB and got the error: > > Program received signal SIGSEGV, Segmentation fault. > 0: 0x003a31c62184 in fwrite () from /lib64/libc.so.6 > Clearly fwrite was called with invalid parameters, bu

Re: [OMPI users] Open MPI data transfer error

2010-11-06 Thread Jack Bryan
: Fri, 5 Nov 2010 14:55:32 -0800 > From: eugene@oracle.com > To: us...@open-mpi.org > Subject: Re: [OMPI users] Open MPI data transfer error > > Debugging is not a straightforward task. Even posting the code doesn't > necessarily help (since no one may be motivated to help o

Re: [OMPI users] Open MPI data transfer error

2010-11-05 Thread Eugene Loh
2010 11:20:57 -0700 To: us...@open-mpi.org Subject: Re: [OMPI users] Open MPI data transfer error As Prentice said, we can't help you without seeing your code. openMPI has stood many trials from many programmers, with many bugs ironed out. So typically it is unlikely openMPI is the source of your e

Re: [OMPI users] Open MPI data transfer error

2010-11-05 Thread Prentice Bisbal
- > From: solarbik...@gmail.com > Date: Fri, 5 Nov 2010 11:20:57 -0700 > To: us...@open-mpi.org > Subject: Re: [OMPI users] Open MPI data transfer error > > As Prentice said, we can't help you without seeing your code. openMPI > has stood many trials from many program

Re: [OMPI users] Open MPI data transfer error

2010-11-05 Thread Jack Bryan
: [OMPI users] Open MPI data transfer error As Prentice said, we can't help you without seeing your code. openMPI has stood many trials from many programmers, with many bugs ironed out. So typically it is unlikely openMPI is the source of your error. Without seeing your code the only lo

Re: [OMPI users] Open MPI data transfer error

2010-11-05 Thread David Zhang
; > The sender sends correct data to correct receiver. > > > > But, receiver gets wrong data from correct sender. > > > > why ? > > > > thanks > > > > Nov. 5 2010 > > > >> Date: Fri, 5 Nov 2010 08:54:22 -0400 > >> From: pre

Re: [OMPI users] Open MPI data transfer error

2010-11-05 Thread Prentice Bisbal
sender. > > why ? > > thanks > > Nov. 5 2010 > >> Date: Fri, 5 Nov 2010 08:54:22 -0400 >> From: prent...@ias.edu >> To: us...@open-mpi.org >> Subject: Re: [OMPI users] Open MPI data transfer error >> >> Jack Bryan wrote: >> > &

Re: [OMPI users] Open MPI data transfer error

2010-11-05 Thread Jack Bryan
i.org > Subject: Re: [OMPI users] Open MPI data transfer error > > Jack Bryan wrote: > > > > Hi, > > > > In my Open MPI program, one master sends data to 3 workers. > > > > Two workers can receive their data. > > > > But, the third wo

Re: [OMPI users] Open MPI data transfer error

2010-11-05 Thread Prentice Bisbal
Jack Bryan wrote: > > Hi, > > In my Open MPI program, one master sends data to 3 workers. > > Two workers can receive their data. > > But, the third worker can not get their data. > > Before sending data, the master sends a head information to each worker > receiver > so that each worker

[OMPI users] Open MPI data transfer error

2010-11-05 Thread Jack Bryan
Hi, In my Open MPI program, one master sends data to 3 workers. Two workers can receive their data. But, the third worker can not get their data. Before sending data, the master sends a head information to each worker receiver so that each worker knows what the following data package is. (su

Re: [OMPI users] OPEN MPI data transfer error

2010-10-22 Thread David Zhang
Did you use the waitall on the sender or the receiver side? I noticed you didn't have the request variable at the receiver side that is needed in the waitall. On Fri, Oct 22, 2010 at 2:48 PM, Jeff Squyres wrote: > On Oct 22, 2010, at 5:36 PM, Jack Bryan wrote: > > > I have used mpi_waitall() to

Re: [OMPI users] OPEN MPI data transfer error

2010-10-22 Thread Jeff Squyres
On Oct 22, 2010, at 5:36 PM, Jack Bryan wrote: > I have used mpi_waitall() to do it. > > The data can be received but the contents are wrong. Can you send a more accurate code snipit, and/or the code that you are using to check whether the data is right/wrong? I ask because I'm a little sus

Re: [OMPI users] OPEN MPI data transfer error

2010-10-22 Thread Jack Bryan
Hi, I have used mpi_waitall() to do it. The data can be received but the contents are wrong. Any help is appreciated. thanks > From: jsquy...@cisco.com > Date: Fri, 22 Oct 2010 15:35:11 -0400 > To: us...@open-mpi.org > Subject: Re: [OMPI users] OPEN MPI data transfer error >

Re: [OMPI users] OPEN MPI data transfer error

2010-10-22 Thread Jeff Squyres
It doesn't look like you have completed the request that came back from Irecv. You need to TEST or WAIT on requests before they are actually completed (e.g., in the case of a receive, the data won't be guaranteed to be in the target buffer until TEST/WAIT indicates that the request has complete

[OMPI users] OPEN MPI data transfer error

2010-10-22 Thread Jack Bryan
Hi, I am using open MPI to transfer data between nodes. But the received data is not what the data sender sends out . I have tried C and C++ binding . data sender:double* sendArray = new double[sendResultVec.size()]; for (int ii =0 ; ii < sendResultVec.size() ; ii++) {