Newsgroups: comp.parallel.mpi
From: atl@mathematik.uni-ulm.de (Andreas Leibl)
Subject: Re: How to pass parameters to the program?
Organization: University of Ulm, SAI, Germany
Date: 1 Sep 1995 16:05:53 GMT
Message-ID: <427b11$o8a@waage.rz.uni-ulm.de>

Hello! :)

Pasha (cuno) wrote:
: Hi , 
: I am probably asking very simple quiestion:
: How can I pass parameters to mpi program, compiled on Solaris with the
: MPICH package.
: My executable accepts few parameters and non-parallel version 
: execution is simply :
: 			my_prgm f1 f2 f3
: MPICH execution requires :
: 	      mpirun  my_prgm f1 f2 f3
: which does not work because these parameters are not accepted (exactly as
: I did not specifying anything).
No problem at all. I am using MPICh here on a cluster of DEC Alphas.
To execute my program, which requires 5 paramters, I write:

        mpirun -np <np> mody pall kall 1 1 1

for example. The first thing the program does is to call

          MPI_Init( argc, argv );

Afterwards, the argv contains

          mody pall kall 1 1 1

which means that the mpich related arguments are removed. :)

Hope this helps ...
                       Andy

-- 
Andreas Leibl / grad. student / Dept. of Physics, University of Ulm, Germany
Theoretical Physics I / Room O25 - 406 / Phone 0731-502-2918
leibl@physik.uni-ulm.de             http://www.mathematik.uni-ulm.de/~atl/ 
atl@mathematik.uni-ulm.de           irc: croc (see you later, alligator :-))
-----------------------------------------------------------------------------
Wenn einer behauptet, er verstehe die Welt nicht mehr, so ist das reine
Koketterie - kein Mensch hat die Welt je verstanden.

