Quick question about command line arguments...

Juan J. Alonso jjalonso at stanford.edu
Sat Apr 10 18:23:43 EDT 2004


Hi Pete,

I have a quick question which is not life-or-death, but came up while 
debugging a code today.  I had compiled an executable with mpich-p4 
because I suspected some problem with the Myrinet libraries.  In order 
to run it I do (from one of the nodes that PBS has assigned to the 
job):

mpiexec -comm mpich-p4 /path/to/executable /path/to/inputfile

Our "executable" picks out the input file name "inputfile" using 
IARGC() and GETARG() in a F95 main.  When it was not working I realized 
that it appears that mpiexec is adding a large number of command line 
arguments and puts the actual ones at the end.  I can obviously pick 
out the last argument and I am happy, but this is not portable to a 
number of different machines.

Is there something that can be done in mpiexec to solve this "ordering" 
problem?

Thanks a lot,

Juan

P.S.  mpiexec continues to work like a charm in our cluster 
(http://redhot.stanford.edu)  As usual, thanks for putting this 
together and continuing to improve it.

__
Juan J. Alonso
Department of Aeronautics & Astronautics
Durand Building, Room 365
Stanford University

phone: (650) 723-9954
fax: (650) 725-3377




More information about the mpiexec mailing list