Newsgroups: comp.parallel.mpi
From: "Marcus Marr" <marr@dcs.ed.ac.uk>
Subject: Re: how to use pipe?
Organization: Computer Systems Group, The University of Edinburgh
Date: Mon, 12 Feb 1996 14:33:19 GMT
Message-ID: <MARR.96Feb12143319@calvay.dcs.ed.ac.uk>

Yufeng Luo writes:
luo> Hi, Anyone knows how to use pipe when running a MPI program with
luo> mpirun?  I'm using LAM.
luo>
luo> I write a appl_schema like:
luo>
luo> myprog1|foo n0 
luo> myprog2 n0 -- marvin 
luo> myprog2 n0 -- r2d2
luo>
luo> where myprog1 and myprog2 are MPI program and foo is not.

As I understand it, the application schema file is only interested in
the MPI programs.  Removing the 'foo' from appl_schema, you should
be able to do something like:

    mpirun appl_schema | foo

For this to work, however, remember that you (may) need to use the
trollius stdin/stdout commands from the libtstdio.a library,
eg. tprintf().  (Normal stdin/stdout gets sent to the parent process
which only has a terminal window attached on the root node).

I've not actually tried this myself, so I'd be interested to hear how
you get on!

Regards,

Marcus

