Newsgroups: comp.parallel.mpi
From: Bruce Allen <ballen@dirac.phys.uwm.edu>
Subject: Can I export environment variables with mpirun?
Organization: University of Wisconsin - Milwaukee, Physics Department
Date: Sun, 29 Mar 1998 20:07:51 -0600
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <351EFD09.48D3@dirac.phys.uwm.edu>

I am using mpich.  Suppose that my mpi program (mycode) reads an
environment variable FOO.  If I do:

node0> setenv FOO 10
node0> mpirun -np 4 mycode

then the only version of "mycode" which has access to the
value of FOO is the one running on node0.

Is there a way I can export environment variables to all
the machines?  Note that I have replaced rsh in mpirun with
secure shell (ssh).

Please copy any replies to ballen@dirac.phys.uwm.edu.  Thanks!

Bruce Allen

