Re: [OMPI users] multiple MPI_Reduce

2007-05-15 Thread Jayanta Roy
Dear Rainer and Adrian, Thank you lot for the help. It works. I was trying this for long time but didn't notice the mistakes. I can't understand how can I overlooked that! Regards, Jayanta On 5/15/07, Adrian Knoth wrote: On Mon, May 14, 2007 at 11:59:18PM +0530, Jayanta Roy wrote: > if(myra

Re: [OMPI users] multiple MPI_Reduce

2007-05-14 Thread Adrian Knoth
On Mon, May 14, 2007 at 11:59:18PM +0530, Jayanta Roy wrote: > if(myrank = 0 || myrank == 1) > if(myrank = 2 || myrank == 3) Just to make clear we're not talking about a typo: Do you mean assignment or comparison? For comparisons, better put the constant value to the left, so if (2 = myrank

Re: [OMPI users] multiple MPI_Reduce

2007-05-14 Thread Rainer Keller
Hello Jay, On Monday 14 May 2007 20:29, Jayanta Roy wrote: > In my 4 nodes cluster I want to run two MPI_Reduce on two communicators > (one using Node1, Node2 and other using Node3, Node4). > Now to create communicator I used ... > MPI_Comm MPI_COMM_G1, MPI_COMM_G2; > MPI_Group g0, g1, g2; > MPI_Co

[OMPI users] multiple MPI_Reduce

2007-05-14 Thread Jayanta Roy
Hi, In my 4 nodes cluster I want to run two MPI_Reduce on two communicators (one using Node1, Node2 and other using Node3, Node4). Now to create communicator I used ... MPI_Comm MPI_COMM_G1, MPI_COMM_G2; MPI_Group g0, g1, g2; MPI_Comm_group(MPI_COMM_WORLD,&g0); MPI_Group_incl(g0,g_size,&r_array[0