Hi all,

I am trying to perform memory allocation analysis in OpenMPI using valgrind and 
use addr2line to get the location in the source code in the application and the 
library.

I have compiled OpenMPI with valgrind using

./configure —prefix=<path> —enable-debug —enable-mem-debug —enable-memchecker 
—with-valgrind=/path-to-valgrind/

I compile and run the sample code, myapp.c as
mpicc –g myapp.c –o myapp
mpirun –np <num_processes> valgrind <valgrind-options> ./myapp

The valgrind output yields hex codes and I try to retrieve the line in the 
source code using addr2line. This  yields the exact line in the source code of 
myapp.c but not in OpenMPI source.  I was expecting it to get the exact 
location and line numbers in OpenMPI too as it is compiled with debug info 
enabled.

Can someone provide any pointers if this is the correct way or/and how to 
achieve this?

—
Murali

_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/devel

Reply via email to