I'm currently making an application where I use OpenMPI. I have
successfully compiled Valgrind with MPI support, but I can't seem to get
it to load the libmpiwrap-amd64-darwin.so library. I tried to follow the
user manual section 4.8, bit since there's no LD_PRELOAD variable in OS
X it is not really useful. Instead I tried linking to
libmpiwrap-amd64-darwin.so, and I can run mpirun -np N valgrind
./hello_world without any errors, but the lines

valgrind MPI wrappers 31901: Active for pid 31901
valgrind MPI wrappers 31901: Try MPIWRAP_DEBUG=help for possible options

are not in the output, and Valgrind reports a lot of memory leaks even
though it's just an mpi hello-world program. My Makefile is:

CC=mpicc
CFLAGS=-Wall -O2 -L/opt/valgrind-3.6.0/lib/valgrind #-dylib_file
libmpiwrap-amd64-darwin.so:opt/valgrind-3.6.0/lib/v
algrind/libmpiwrap-amd64-darwin.so

hello: mpi_hello_world.o
$(CC) $(CFLAGS) -lmpiwrap-amd64-darwin mpi_hello_world.o -o hello

clean:
rm -rf *.o hello




<P><p><font face="Arial, Helvetica, sans-serif" size="2" 
style="font-size:13.5px">_______________________________________________________________<BR>Care2
 makes it easy for everyone to live a healthy, green lifestyle
and impact the causes you care about most. Over 12 Million members!
http://www.care2.com

Feed a child by searching the web! Learn how http://www.care2.com/toolbar</font>
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to