I did my patch against the development trunk; could you try the attached patch to a trunk nightly tarball and see if that works for you?
If it does, I can provide patches for v1.4 and v1.5 (the code moved a bit between these 3 versions, so I would need to adapt the patches a little). On Jan 27, 2011, at 9:06 AM, Gabriele Fatigati wrote: > Ok Jeff, > > explain me where is the code and i'll try to fix it. > > Thanks a lot. > > 2011/1/27 Jeff Squyres <[email protected]> > I found the code in OMPI that is dropping the quoting. > > Specifically: it *is* OMPI that is dropping your quoting / splitting "foo > bar" into 2 arguments when re-execing totalview. > > Let me see if I can gin up a patch... > > > On Jan 27, 2011, at 7:42 AM, Ralph Castain wrote: > > > 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 <[email protected]> > >> 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 <[email protected]> > >> > 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 > >> > > [email protected] > >> > > http://www.open-mpi.org/mailman/listinfo.cgi/users > >> > > >> > > >> > _______________________________________________ > >> > users mailing list > >> > [email protected] > >> > 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 > >> > [email protected] > >> > http://www.open-mpi.org/mailman/listinfo.cgi/users > >> > >> > >> _______________________________________________ > >> users mailing list > >> [email protected] > >> 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 > >> [email protected] > >> http://www.open-mpi.org/mailman/listinfo.cgi/users > > > > _______________________________________________ > > users mailing list > > [email protected] > > http://www.open-mpi.org/mailman/listinfo.cgi/users > > > -- > Jeff Squyres > [email protected] > For corporate legal information go to: > http://www.cisco.com/web/about/doing_business/legal/cri/ > > > _______________________________________________ > users mailing list > [email protected] > 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 > [email protected] > http://www.open-mpi.org/mailman/listinfo.cgi/users -- Jeff Squyres [email protected] For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
orterun-debugger.patch
Description: Binary data
