LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2003-05-14 16:01:52


Actually, my ordering wasn't exactly right. Try this:

> - your matlab script launches
> - it calls MPI_Init
> - check for a published name
> - if the published name does not exist
> - spawn a master (i.e., a new, independant process)
> - the master spawns a bunch of slaves to do the work
> - the master publishes a name
> - if the published name does exist
> - MPI_Comm_connect to the master
> - the matlab script sends a bunch of work to the master
> - the master farms it out to all the slaves
> - the slaves do all the work and eventually send the result(s) to the
> master
> - the master sends the result(s) to the matlab script
> - the matlab script disconnects from the master
> - the matlab script finishes

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/