Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Argument parsing issue
From: Gabriele Fatigati (g.fatigati_at_[hidden])
Date: 2011-01-27 04:32:09


Mm,

doing as you suggest the output is:

a
b
"c
d"

and not:

a
b
"c d"

2011/1/27 Reuti <reuti_at_[hidden]>

> Hi,
>
> Am 27.01.2011 um 09:48 schrieb Gabriele Fatigati:
>
> > Dear OpenMPI users and developers,
> >
> > i'm using OpenMPI 1.4.3 and Intel compiler. My simple application require
> 3 line arguments to work. If i use the follow command:
> >
> > mpirun -np 2 ./a.out a b "c d"
> >
> > It works well.
> >
> > Debugging my application with Totalview:
> >
> > mpirun -np 2 --debug ./a.out a b "c d"
> >
> > Argument parsing doesn't work well. Arguments passed are:
> >
> > a b c d
>
> this double expansion can happen with certain wrappers (also with queuing
> system this happens sometimes). What you can try is:
>
> $ mpirun -np 2 --debug ./a.out a b "'c d'"
>
> $ mpirun -np 2 --debug ./a.out a b "\"c d\""
>
> -- Reuti
>
>
> > and not
> >
> > a b "c d"
> >
> > I think there is an issue in parsing the arguments invoking Totalview. Is
> this a bug into mpirun or i need to do it in other way?
> >
> > Thanks in forward.
> >
> >
> >
> >
> >
> > --
> > Ing. Gabriele Fatigati
> >
> > Parallel programmer
> >
> > CINECA Systems & Tecnologies Department
> >
> > Supercomputing Group
> >
> > Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
> >
> > www.cineca.it Tel: +39 051 6171722
> >
> > g.fatigati [AT] cineca.it
> > _______________________________________________
> > users mailing list
> > users_at_[hidden]
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>

-- 
Ing. Gabriele Fatigati
Parallel programmer
CINECA Systems & Tecnologies Department
Supercomputing Group
Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
www.cineca.it                    Tel:   +39 051 6171722
g.fatigati [AT] cineca.it