Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Problems Broadcasting/Scattering Data
From: Dino Rossegger (dino.rossegger_at_[hidden])
Date: 2008-01-09 02:53:28


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 pointers had to be corrected for the Gather.
> Now the output looks like this:
>

Now it works, thank you very much
> 0
> 500
> 1000
> 10
> 510
> 1010
> 11
> 511
> 1011
>
> Is this what you did expect?
>
> BTW: of course you can send multidimensional arrays with scatter and
> gather. This is because they're really just one-dimensional in
> memory.
>

I thought so too but was a bit confused since I got the tip to fold the
arrays etc.
> Cheers
> -Andreas
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users