[mpich-discuss] Problem with LD_PRELOAD

Darius Buntinas buntinas at mcs.anl.gov
Fri Sep 30 11:32:45 CDT 2011


Try this to make sure mpiexec passes the environment variable:
  mpiexec env | grep LD_PRELOAD

-d

On Sep 30, 2011, at 11:27 AM, Sandra Mendez wrote:

> Hi,
> Yes, export LD_PRELOAD=/home/smendez/libpas2p/bin/libpas2p-pvfs2.so
> 
> and ldd report:
> 
> smendez at node1:~$ ldd
> /home/smendez/NPB3.3.1/NPB3.3-MPI/bin/bt.C.4.mpi_io_full	linux-vdso.so.1 =>
> (0x00007fffc7bff000)
> 	/home/smendez/libpas2p/bin/libpas2p-pvfs2.so (0x00007fd57b74f000)
> 	libmpich.so.3 => /home/smendez/mpich2-install/lib/libmpich.so.3
> (0x00007fd57b359000)
> 	libopa.so.1 => /home/smendez/mpich2-install/lib/libopa.so.1
> (0x00007fd57b157000)
> 	libmpl.so.1 => /home/smendez/mpich2-install/lib/libmpl.so.1
> (0x00007fd57af52000)
> 	librt.so.1 => /lib/librt.so.1 (0x00007fd57ad4a000)
> 	libpthread.so.0 => /lib/libpthread.so.0 (0x00007fd57ab2e000)
> 	libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00007fd57a842000)
> 	libm.so.6 => /lib/libm.so.6 (0x00007fd57a5be000)
> 	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fd57a3a7000)
> 	libc.so.6 => /lib/libc.so.6 (0x00007fd57a037000)
> 	libdl.so.2 => /lib/libdl.so.2 (0x00007fd579e33000)
> 	/lib64/ld-linux-x86-64.so.2 (0x00007fd57b958000)
> 
> When the application starts does not report nothing.
> 
> Thanks.
> Sandra.-
> ----------------mensaje original-----------------
> De: "Simon Hammond" simon.hammond at gmail.com
> Para: mpich-discuss at mcs.anl.gov
> Fecha: Fri, 30 Sep 2011 06:46:16 -0600
> -------------------------------------------------
> 
> 
>> Are you exporting the environment variable (LD_PRELOAD) correctly? Do
>> you see any output from the tracer at all (when the application starts
>> up?)
>> 
>> 
>> 
>> --
>> Si Hammond
>> 
>> 
>> 
>> 
>> On 30 September 2011 05:59, Gustavo Correa gus at ldeo.columbia.edu wrote:
>>> Maybe using the --enable-g=... [i.e. debug] option of configure would 
>>> help?
>>> You could go  to the MPICH2 top directory and do './configure --help' to
> check 
>>> the details.
>>> I hope this helps,
>>> Gus Correa
>>> 
>>> On Sep 30, 2011, at 5:47 AM, Sandra Mendez wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I need trace  mpi-io and for this I have a library that is load with 
>>>> LD_PRELOAD. It traces on openmpi but does not trace on MPICH2.
>>>> MPICH2 was installed with the next command to configure:
>>>> 
>>>> 
>>>> ./configure --prefix=/home/smendez/mpich2-install 
>>>> --enable-shared --with-mpe --enable-sharedlibs=gcc 
>>>> F77=/usr/bin/gfortran FC=/usr/bin/gfortran 
>>>> --enable-dynamiclibs=ch3:sock
>>>> 
>>>> But It does not trace mpi instructions.
>>>> Somebody can help me?
>>>> Thanks.
>>>> Sandra.-
>>>> 
>>>> _______________________________________________
>>>> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
>>>> To manage subscription options or unsubscribe:
>>>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>> 
>>> _______________________________________________
>>> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
>>> To manage subscription options or unsubscribe:
>>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>> 
>> _______________________________________________
>> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
>> To manage subscription options or unsubscribe:
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>> 
> 
> 
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list