[mpich-discuss] Parsing mpirun global options in main C
Gonzalo Martín Cruz
gmcruz at arcos.inf.uc3m.es
Mon Aug 27 06:20:04 CDT 2012
Hi,
I am trying to parse the command line global options for mpirun in the main
section of my C program. For example, when I run:
mpirun -np 2 -machinefile hostfile ./myprogram 100
I would like to parse the seven arguments instead of these two only:
"./myprogram" and "100".
I tried to parse the arguments before the MPI_Init call but at this point I
already got only two arguments, I guess the mpirun executable "eats" the
MPI specific arguments. I can't find the way to do that.
Thank you in advance,
Gonzalo Martin
Computer Architecture Group
Universidad Carlos III de Madrid
e-mail: gmcruz at arcos.inf.uc3m.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120827/c82141d0/attachment.html>
More information about the mpich-discuss
mailing list