Re: [OMPI users] any deadlocks in this sets of MPI_send and MPI_recv ?

2013-09-13 Thread Huangwei
*The code I would like to post is like this:* * * if(myrank .ne. 0) then itag = myrank call mpi_send(Q.., 0, itag, .) else do i=1, N-1 itag = i call mpi_recv(QRECS..., i, itag, .) enddo endif call mpi_bcast(YVA

[OMPI users] any deadlocks in this sets of MPI_send and MPI_recv ?

2013-09-13 Thread Huangwei
Dear All, I have a question about using MPI_send and MPI_recv. *The object is as follows:* I would like to send an array Q from rank=1, N-1 to rank=0, and then rank 0 receives the Q from all other processors. Q will be put into a new array Y in rank 0. (of couse this is not realized by MPI). and

Re: [OMPI users] adding library (libmpi_cxx.so.1)

2013-09-13 Thread amirreza Hashemi
Jeff, Sorry about that, actually I am not sure what more exactly I can provide here, I am using openmpi 1.5.4-3.fc16.x86_64 with fedora machine, I installed that on yum install openmpi command. But when I am trying to make connection with some library libmpi_cxx.so.1 to main code, it gives m

Re: [OMPI users] adding library (libmpi_cxx.so.1)

2013-09-13 Thread Jeff Squyres (jsquyres)
This isn't quit enough information to figure out what's going on. Can you provide all the information listed here: http://www.open-mpi.org/community/help/ On Sep 13, 2013, at 7:43 PM, amirreza Hashemi wrote: > Hi All, > > I have a problem to add a MPI library libmpi_cxx.so.1 to code whi

[OMPI users] adding library (libmpi_cxx.so.1)

2013-09-13 Thread amirreza Hashemi
Hi All, I have a problem to add a MPI library libmpi_cxx.so.1 to code which I am workign on it, I export the library to LD_LIBRARY_PATH. But whenever I do this, I get this error: Fatal error in MPI_Comm_dup: Invalid communicator, error stack: MPI_Comm_dup(168): MPI_Comm_dup(comm=0x0, new_comm=0x