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: Andreas Schäfer (gentryx_at_[hidden])
Date: 2008-01-08 13:01:58


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)

I have reworked your program to check what's running wrong. In fact it
seems to work as expected, although you might want to double check
your array sizes, they're named a bit confusingly.

Maybe it didn't work because there was no MPI_Finalize() at the
end. But then again I might not understand your problem. The other
machines do no output, so how can their output be wrong? If you expect
the other processors to have the same data in stat3 as rank 0 does,
then you should rather use MPI_Allgather than MPI_Gather, as
MPI_Gather will only concentrate the data on the root node, which is 0
in your case. Thus, the other nodes cannot produce the same output as
node 0.

I've attached my reworked version (including some initialization
code for clarity). If you want me again to debug a program of yours,
send a floppy along with a pizza Hawai (cartwheel size) to:

Andreas Schäfer
Cluster and Metacomputing Working Group
Friedrich-Schiller-Universität Jena
Ernst-Abbe-Platz 2
07743 Jena
Germany

Seriously, that would be cool :P

HTH
-Andi

-- 
============================================
Andreas Schäfer
Cluster and Metacomputing Working Group
Friedrich-Schiller-Universität Jena, Germany
PGP/GPG key via keyserver
I'm a bright... http://www.the-brights.net
============================================
(\___/)
(+'.'+)
(")_(")
This is Bunny. Copy and paste Bunny into your 
signature to help him gain world domination!




  • application/pgp-signature attachment: stored