The problem is that mpirun regenerates itself to exec a command of "totalview mpirun ....", and the quotes are lost in the process.

Just start your debugged job with "totalview mpirun ..." and it should work fine.

On Jan 27, 2011, at 3:00 AM, Gabriele Fatigati wrote:

The problem is how mpirun scan input parameters when Totalview is invoked.

There is some wrong behaviour in the middle :(

2011/1/27 Reuti <reuti@staff.uni-marburg.de>
Am 27.01.2011 um 10:32 schrieb Gabriele Fatigati:

> Mm,
>
> doing as you suggest the output is:
>
> a
> b
> "c
> d"

Whoa - your applications without the debugger is running fine - so I don't think that it's a problem with `mpirun` per se.

The same happens with single quotes inside double quotes?

-- Reuti


> and not:
>
> a
> b
> "c d"
>
> 2011/1/27 Reuti <reuti@staff.uni-marburg.de>
> 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@open-mpi.org
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> _______________________________________________
> users mailing list
> users@open-mpi.org
> 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
> _______________________________________________
> users mailing list
> users@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users


_______________________________________________
users mailing list
users@open-mpi.org
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          
_______________________________________________
users mailing list
users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users