Am 05.05.2012 18:59, schrieb Philippe Waroquiers: > On Sat, 2012-05-05 at 18:14 +0200, Martin Kalany wrote: >>> Is the 'cannot open' error only there when running under Valgrind ? >> Yes. When I use mpirun, it's fine. >> >> What I think is strange that valgrind apperantly tries to load >> libmpi.so, although it should load libmpich.so.1.0 >> >>> Maybe a problem related to the dynamic loader ? >> I'm rather new to MPI so I'm not sure about this. > Valgrind is not supposed to change which shared lib are used: > the dynamic loader is executed by Valgrind and should behave > the same (and so load the same shared libs as a native run). > > I know nothing abound MPI and so might not understand > what you are doing. > But I believe mpirun is a shell script > which might be needed to setup some required env variables. > > So, to be sure, mpirun should be used also when using Valgrind > e.g. > valgrind --trace-children=yes mpirun .... > > (or is this what you are doing already ?) > > > Philippe
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? Martin ------------------------------------------------------------------------------ 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