Re: [OMPI users] Problems Broadcasting/Scattering Data

2008-01-09 Thread Dino Rossegger
Andreas Schäfer schrieb: On 19:31 Tue 08 Jan , Dino Rossegger wrote: Hi, thanks for the programm, but sadly I can't get it work :(. It's the same error as in my programm. I get the following output: 0 0 0 10 0 0 11 0 0 Which as far as I know can't be correct. Oh, my bad. The field pointe

Re: [OMPI users] Problems Broadcasting/Scattering Data

2008-01-08 Thread Andreas Schäfer
On 19:31 Tue 08 Jan , Dino Rossegger wrote: > Hi, > thanks for the programm, but sadly I can't get it work :(. > It's the same error as in my programm. I get the following output: > 0 > 0 > 0 > 10 > 0 > 0 > 11 > 0 > 0 > > Which as far as I know can't be correct. Oh, my bad. The field pointer

Re: [OMPI users] Problems Broadcasting/Scattering Data

2008-01-08 Thread Dino Rossegger
Hi, thanks for the programm, but sadly I can't get it work :(. It's the same error as in my programm. I get the following output: 0 0 0 10 0 0 11 0 0 Which as far as I know can't be correct. It's the same problem that I had in my programm. The process with the rank 0 has the right data in it's

Re: [OMPI users] Problems Broadcasting/Scattering Data

2008-01-08 Thread Andreas Schäfer
Hi Dino, On 18:05 Tue 08 Jan , Dino Rossegger wrote: > In fact it is initialized, as I stated in my first mail I only left out > the code where it gets initialized, since it reads the data from a file > and that works (I have tested it). (you should have provided a self contained excerpt)

Re: [OMPI users] Problems Broadcasting/Scattering Data

2008-01-08 Thread Dino Rossegger
George Bosilca schrieb: On Jan 8, 2008, at 11:14 AM, Dino Rossegger wrote: If so, then the problem is that Scatter actually gets an array of pointers and sends these pointers trying to interpret them as doubles. You either have to use several scatter commands or "fold" your 2D-Array into a on

Re: [OMPI users] Problems Broadcasting/Scattering Data

2008-01-08 Thread George Bosilca
On Jan 8, 2008, at 11:14 AM, Dino Rossegger wrote: If so, then the problem is that Scatter actually gets an array of pointers and sends these pointers trying to interpret them as doubles. You either have to use several scatter commands or "fold" your 2D-Array into a one-dimensional array. So

Re: [OMPI users] Problems Broadcasting/Scattering Data

2008-01-08 Thread Dino Rossegger
Thanks jody schrieb: I'm not sure if i understad your code correctly - i imagine you want to use the scatter command to broadcast the contents of your 2-dimensional array stat, is that right? Yes I want to broadcast stat, and split it in the first dimension , so that, for instance: Process 1

Re: [OMPI users] Problems Broadcasting/Scattering Data

2008-01-08 Thread jody
I'm not sure if i understad your code correctly - i imagine you want to use the scatter command to broadcast the contents of your 2-dimensional array stat, is that right? If so, then the problem is that Scatter actually gets an array of pointers and sends these pointers trying to interpret them as

[OMPI users] Problems Broadcasting/Scattering Data

2008-01-08 Thread Dino Rossegger
Hi, I have a problem distributing a 2 dimensional array over 3 processes. I tried different methods to distribute the data (Broadcast, Send/Recv, Scatter) but all of them didn't work for me. The output of the root processor (0 in my case) is always okay, the output of the others are simple 0. T