if I tried the ring program, the first round of pass is fine, but the second round is blocked at some node.
Process 0 sending 10 to 1, tag 201 (3 processes in ring)
Process 0 sent to 1
rank 1, message 10,start===========
rank 1, message 10,end-------------
rank 2, message 10,start===========
Process 0 decremented value: 9
rank 0, message 9,start===========
rank 0, message 9,end-------------
rank 2, message 10,end-------------
rank 1, message 9,start===========
I have added some printf statements in the ring_c.c as follows:
60 printf("rank %d, message %d,start===========\n", rank, message);
61 MPI_Send(&message, 1, MPI_INT, next, tag, MPI_COMM_WORLD);
62 printf("rank %d, message %d,end-------------\n", rank, message);
At 2012-09-25 16:30:01,Richard <firstname.lastname@example.org> wrote:
thanks for your suggestion and you are right. if I use the ring example, the same happened.
I have put a printf statement, it seems that all the three processed have reached the line
calling "PMPI_Allreduce", any further suggestion?
Date: Tue, 25 Sep 2012 09:43:09 +0200
From: jody <email@example.com>
Subject: Re: [OMPI users] mpi job is blocked
To: Open MPI Users <firstname.lastname@example.org>
Content-Type: text/plain; charset=ISO-8859-1
When a collective call hangs, this usually means that one (or more)
processes did not reach this command.
Are you sure that all processes reach the allreduce statement?
If something like this happens to me, i insert print statements just
before the MPI-call so i can see which processes made
it to this point and which ones did not.
Hope this helps a bit
On Tue, Sep 25, 2012 at 8:20 AM, Richard <email@example.com> wrote:
> I have 3 computers with the same Linux system. I have setup the mpi cluster
> based on ssh connection.
> I have tested a very simple mpi program, it works on the cluster.
> To make my story clear, I name the three computer as A, B and C.
> 1) If I run the job with 2 processes on A and B, it works.
> 2) if I run the job with 3 processes on A, B and C, it is blocked.
> 3) if I run the job with 2 processes on A and C, it works.
> 4) If I run the job with all the 3 processes on A, it works.
> Using gdb I found the line at which it is blocked, it is here
> #7 0x00002ad8a283043e in PMPI_Allreduce (sendbuf=0x7fff09c7c578,
> recvbuf=0x7fff09c7c570, count=1, datatype=0x627180, op=0x627780,
> at pallreduce.c:105
> 105 err = comm->c_coll.coll_allreduce(sendbuf, recvbuf, count,
> It seems that there is a communication problem between some computers. But
> the above series of test cannot tell me what
> exactly it is. Can anyone help me? thanks.
> users mailing list