Newsgroups: comp.parallel.mpi
From: pikus@sbphy.physics.ucsb.edu (Fedor G. Pikus)
Subject: How to do this on MPI nicely
Organization: University of California, Santa Barbara
Date: 24 Nov 95 21:40:25 GMT
Message-ID: <pikus.817249225@sbphy.physics.ucsb.edu>

I want to do the following two things on MPI:
1) Each node holds a real number and 2 interger numbers; I need to find
the node which has the smallest real number and broadcast its numbers (both
real and integer) to all nodes. The numbers which other nodes held
should be discarded and overwritten by the numbers from the selected
node.
2) There is an array, each node computes few elements of it, then I need
each node to have the entire array.

I'm very new to MPI, my main experience is with PVM.
I can think of few ways to do it, but they are all "PVM-style", involve
sending all numbers to all nodes explicitly, or organizing some search
trees, also explicitly. I don't have enough "feel" for MPI. so if some
of those fancy MPI calls can be rigged to do what I need in an elegant
way, I would appreciate an example, or, al least, which calls should be
used, I'll try to figure out the rest.
Thanks, Fedor


-- 
                                  Fedor G. Pikus
WWW: http://www.physics.ucsb.edu/~pikus/
E-Mail: pikus@physics.ucsb.edu
Department of Physics, University of California at Santa Barbara.
--
                                  Fedor G. Pikus
WWW: http://www.physics.ucsb.edu/~pikus/
E-Mail: pikus@physics.ucsb.edu
Department of Physics, University of California at Santa Barbara.

