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/
|