Newsgroups: comp.parallel.mpi
From: Lars Rzymianowicz <lr@mufasa.informatik.uni-mannheim.de>
Subject: Re: simple program
Organization: Dept. of Computer Science, University of Mannheim, Germany
Date: Thu, 14 May 1998 12:49:15 +0200
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <355ACC2B.26B98C4@mufasa.informatik.uni-mannheim.de>

Drotos Daniel wrote:
> I have read tutorials, checked mpiexmpl and examples, but all
> examples use only one binary and have code like
> 
> if (rank == 0)
>   do_something(for example send)
> else
>   do_other_thing(for example receive)
> 
> But I would like to put `do_something' and `do_other_thing' in
> _different_ binaries (and start one instance of those processes).

And where is the problem? Put the code in two unique source files,
compile them and start. If you are using MPICH, the mpirun script
has a parameter -p4pg <prgfile>, where you can say, which
executables should be started.

Lars

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

