Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] How to debug Open MPI programs with gdb
From: Trent Creekmore (mtcreekmore_at_[hidden])
Date: 2010-04-22 13:25:51

You can run a X-windows server on your local machine and use the GUI for
gdb, or use Eclipse Parallel Tools Platform (
that has a debugger and turn on X-Forwarding in your Secure Shell client.

-----Original Message-----
From: users-bounces_at_[hidden] [mailto:users-bounces_at_[hidden]] 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


I tried to debug with command: "mpirun -debugger gdb -debug -np 4
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
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
users mailing list