Newsgroups: comp.parallel.mpi
From: Lars Rzymianowicz <lr@mufasa.informatik.uni-mannheim.de>
Subject: Re: Using MPI to communicate between seperate binaries in LINUX
Organization: Dept. of Computer Engineering, University of Mannheim, Germany
Date: Thu, 16 Jul 1998 09:45:31 +0200
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <35ADAF9A.FE4AB8C5@mufasa.informatik.uni-mannheim.de>

Mark wrote:
> ...All of the nodes will be running a copy of the same program,
> while the root machine will be running a different program.  The node
> programs need to be able to send a message to the root program if they
> find an error.  Can anyone show me how to use MPI to communicate between
> these seperate programs??

Hi Mark,

no problem. Write your both apps and compile them. Then start them via mpirun
with a special procgroup file (-p4pg flag) like:
master_node	1	root_program
slave_node0	1	slave_program
...
slave_noden	1	slave_program

If you want different executables communicate via MPI calls, they must be
started together, since at start-up the info "which process runs where" is
distributed via this procgroup file.

Lars
-- 
email: lr@mufasa.informatik.uni-mannheim.de
Homepage: http://mufasa.informatik.uni-mannheim.de/lsra/persons/lars/

