Message-Id: <3659289A.5F1AF9BE@dolphinics.com>
Date: Mon, 23 Nov 1998 09:19:22 +0000
From: James Cownie <jcownie@dolphinics.com>
Organization: Dolphin Interconnect Solutions
Mime-Version: 1.0
Newsgroups: comp.parallel.mpi
Subject: Re: Environment Variables and MPI ?
References: <3655E622.B7C2E475@LL.MIT.EDU>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Michael Starkie wrote:
> 
> Is it possible to set environment variables for MPI programs WITHOUT
> having to code them into the MPI programs.
> 
> Do established applications that use scripts to set up their environment
> before execution have to be re-written in order to link and use the MPI
> ? Wow !!
> 
> --
> Cordially,
> Michael Starkie

The MPI standard makes no statements at all about environment variables, 
(just as it makes no statements about how other operating system
issues).

If you're starting your program on a Unix machine most MPI systems seem
to
ensure that the environment is available to (at least) the first process
(rank 0 in COMM_WORLD). If you need environment values elsewhere, pass
them over.

This was discussed (with sample code fragments) a month or two ago, so
Dejanews should be your friend...

-- Jim 

James Cownie			<jcownie@dolphinics.com>
Dolphin Interconnect Solutions  +44 117 9071438
http://www.dolphinics.com/toolworks

