Newsgroups: comp.parallel.mpi
From: fachat@physik.tu-chemnitz.de (Andre Fachat)
Subject: Re: MPI_Init(&argc, &argv);
Organization: My org
Date: 1 Dec 1997 09:59:24 GMT
Message-ID: <65u1ps$3i$1@narses.hrz.tu-chemnitz.de>

Vereecken Luc (Luc.Vereecken@chem.kuleuven.ac.be) wrote:
: Michael Blocksome <mab+@rchland.ibm.com> wrote:

: >Hello,
: >I am new to MPI and I'm curious about the argc and argv arguments to
: >MPI_Init().  What is MPI_Init() looking for?  I'd like to pass in other
: >"non-MPI" arguments on the command line and only pass the arguments
: >MPI_Init() requires.  However, I do not know what to send.  Any help?

: The arguments you have to pass to MPI_INIT is implementation
: dependent. e.g. MPICH requires other arguments than say POE or LAM.
: The reason the argc and argv are passed to MPI_INIT is to allow the
: MPI-implementation to retrieve it's specific information, so the host

One more thing: If you pass the parameter to MPI_Init(), it removes
all the parameters MPI has added say, for rsh execution (MPICH, p4 device). 
After MPI_Init() you then only see the non-MPI parameters.
If you parse the command line options _before_ MPI_Init you must be
able to parse the MPI options too, which you cannot because
they are different for different implementations.

Andre

--
Email address may be invalid. Use "fachat AT physik DOT tu-chemnitz DOT de"
------Fight SPAM - join CAUCE http://www.cauce.org------Thanks, spammers...
Andre Fachat, Institute of physics, Technische Universität Chemnitz, FRG
		http://www.tu-chemnitz.de/~fachat

