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 08:49:34


The command

"totalview mpirun..."

starts debugging on mpirun not on my executable :(

Code showed is related to main.c of OpenMPI.

2011/1/27 Ralph Castain <rhc_at_[hidden]>

> 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_at_[hidden]>
>
>> 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_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
>> > _______________________________________________
>> > 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
> _______________________________________________
> 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