Re: [OMPI users] How to debug Open MPI programs with gdb

2010-04-22 Thread Trent Creekmore
-boun...@open-mpi.org] On Behalf Of ?? (Nemanja Ilic) Sent: Thursday, April 22, 2010 6:12 AM To: Open MPI User List Subject: [OMPI users] How to debug Open MPI programs with gdb Hello, I tried to debug with command: "mpirun -debugger gdb -debug -np 4 my_program" Surely, it

Re: [OMPI users] How to debug Open MPI programs with gdb

2010-04-22 Thread Jed Brown
On Thu, 22 Apr 2010 13:11:49 +0200, "=?utf-8?b?0J3QtdC80LDRmtCwINCY0LvQuNGb?= (Nemanja Ilic)" wrote: > On the contrary when I debug with "mpirun -np 4 xterm -e gdb > my_mpi_application" the four debugger windows are started with > separate thread each, just as it should be. Since I will be using

Re: [OMPI users] How to debug Open MPI programs with gdb

2010-04-22 Thread Ralph Castain
I don't think the "debugger" option to mpirun will work with gdb - I believe it is intended to work with parallel debuggers such as Totalview. Looking at the code, I certainly can't see how gdb would work correctly with it. There is an mpirun option "-xterm" which will launch the xterm windows

Re: [OMPI users] How to debug Open MPI programs with gdb

2010-04-22 Thread Немања Илић (Nemanja Ilic)
Hello, I am using Open MPI 1.4.1 Best regards, Nemanja Ilic On Thursday 22 April 2010 16:44:13 you wrote: > What version of OMPI are you using? > > On Apr 22, 2010, at 5:11 AM, Немања Илић (Nemanja Ilic) wrote: > > > Hello, > > > > I tried to debug with command: "mpirun -debugger gdb -debug

Re: [OMPI users] How to debug Open MPI programs with gdb

2010-04-22 Thread Ralph Castain
What version of OMPI are you using? On Apr 22, 2010, at 5:11 AM, Немања Илић (Nemanja Ilic) wrote: > Hello, > > I tried to debug with command: "mpirun -debugger gdb -debug -np 4 my_program" > Surely, it starts the debugger, but it doesn't start the debugging nor it > loads any of the my_progra

[OMPI users] How to debug Open MPI programs with gdb

2010-04-22 Thread Немања Илић (Nemanja Ilic)
Hello, I tried to debug with command: "mpirun -debugger gdb -debug -np 4 my_program" Surely, it starts the debugger, but it doesn't start the debugging nor it loads any of the my_program threads into the debugger. If I start debugging manually ("file my_program", then "run"), I can start only o