Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] Debugging OpenMPI calls
From: Aniruddha Marathe (marathe.aniruddha_at_[hidden])
Date: 2009-09-28 05:57:59


I am new to OpenMPI library and I am trying to step through common MPI
communication calls using gdb. I attach gdb to one of the processes
(using the steps mentioned on the OpenMPI Debugging FAQ page) and set
a breakpoint on 'MPI_Barrier' and expect gdb to jump into the
definition of MPI_Barrier function.

I've manually added -g3 compilation flag to the Makefiles in some of
the directories that I thought relevant ({ROOT}/ompi/mpi/c etc). I
also specified the source file paths in gdb using the 'dir' command.
However, gdb is unable to jump into the appropriate source location
when it hits the breakpoint.

Could anyone please let me know if I am missing something here?

Thanks for looking into my post.