On Sun, 2012-05-06 at 00:24 +0200, Martin Kalany wrote: > I'm already doing that, but in a slightly different way: > LD_PRELOAD=~/valgrind/valgrind-3.7.0/mpi/libmpiwrap-x86-linux.so \ > mpirun -np 2 valgrind ./foo > > (This is suggested in the mpi section of the valgrind documentation). > This way, mpirun will launch two processes; each process starts valgrind > which will in turn execute the actual program. > > I did exactly as the documentation does; I think the main issue is this: > > >Valgrind documation states that "The MPI functions to be wrapped are assumed > >to be in an ELF shared object with soname matching libmpi.so*. This is > >known>to be correct at least for Open MPI and Quadrics MPI, and can easily > >be changed if required." > How and where do I change that?
>From what I can see, to change this, you must edit the "Z encoding" of the mpi wrappers. I think this is the macro in the file libmpiwrap.c: #define I_WRAP_FNNAME_U(_name) \ I_WRAP_SONAME_FNNAME_ZU(libmpiZaZdsoZa,_name) However, the current Z encoding is the following pattern: "libmpi*.so*" so that it will wrap the mpi functions from all sonames matching the above pattern. In particular, it will wrap the functions in a soname: libmpich.so.1.0 >From what I can see, the problem is not in the wrapping but rather that for one reason or another, the dynamic loader under Valgrind does not find the relevant lib. Maybe Valgrind args -v -v -v -d -d -d --trace-redir=yes could give a hint ? Sorry for not be able to help more Philippe ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users