On Sat, 2012-05-05 at 14:25 +0200, Martin Kalany wrote: > Hello, > > I'm trying to use valgrind do debug an mpich2 program. Unfortunately, I get > the following error: > > libmpi.so.0: cannot open shared object file: No such file or directory > > I found out that libmpich.so.1.0 should be linked to instead (see > libmpiwrap.c). 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 do I change that? Is the 'cannot open' error only there when running under Valgrind ? The Z encoding used in libmpiwrap.c is a pattern which matches one or the other library: #define I_WRAP_FNNAME_U(_name) \ I_WRAP_SONAME_FNNAME_ZU(libmpiZaZdsoZa,_name)
i.e. it is libmpi*.so*. So, I guess your problem is not the Valgrind wrapping. Maybe a problem related to the dynamic loader ? 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