Newsgroups: comp.parallel.mpi
From: "Alexander N. Andreyev" <alexander@vvv.srcc.msu.su>
Subject: Re: --mpirun and command line arguments
Organization: MTU-Inform
Date: Sat, 30 May 1998 12:01:34 +0300
Mime-Version: 1.0
Content-Type: text/plain; harset="koi8-r"
Content-Transfer-Encoding: 7bit
Message-ID: <6koefm$pst$1@ns.mtu.ru>

Hello,

I handle command line in my MPI programs and everything works smoothly, on
all platforms (including Solaris). May be you print your argv before doing
MPI_Init ?! Usually, MPI_Init strips off all MPI-related arguments; only
after that you should handle your parameters. Please note that only process
with rank #0 is guaranteed to receive command line as passed, you should
Bcast it to other processes.

> Unfortunately, mpirun seems to be interfering with the command
>line argument handling of my code, which is written in C.  I was under the
>impression that mpirun strips off all MPI specific command line arguments
>before passing the rest to the given program.  When printing the contents
>of the input array, argv, I find that the last two elements are -p4pg and
>the associated filename.  This occurs whether I set this flag manually
>from the command line or mpirun sets it automatically.

Best wishes from Russia,
    Alexander N. Andreyev
    Mail: alexander@vvv.srcc.msu.su,



