Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] How to debug Open MPI programs with gdb
From: Немања Илић (Nemanja Ilic) (nemanja.ilic.81_at_[hidden])
Date: 2010-04-22 07:11:49


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 one thread of my_program.
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 debugger on a remote computer I can only run gdb in console mode. Can anyone help me with this?

Thank you in advance,
Best regards,
Nemanja Ilic