Rainer,

On Thu, Nov 08, 2007 at 06:28:42PM +0100, Rainer Keller wrote:
> Hello Harald,
> please see:
>   http://www.open-mpi.org/faq/?category=mpi-apps#why-no-rpath
> 
> One possibility with Your existing installation is to circumvent a libmpi* 
> being used from the standard system library directories: just adapt Your 
> mpi*-wrapper-data.txt files in
> /home/Computacional/harald/aplic/openmpi/1.2/share/openmpi
> 
> Instead of:
>   libs=-lmpi
> set it to:
>   libs=/home/Computacional/harald/aplic/openmpi/1.2/lib/libmpi.a

  thank you! It worked like a charm!

Regards,

> 
> Of course, You may play with -rpath in conjunction with 
> --with-wrapper-ldflags.
> 
> More info on this in: 
> http://www.open-mpi.org/faq/?category=mpi-apps#override-wrappers-after-v1.0
> 
> 
> Hope this helps,
> Rainer
> 
> On Thursday 08 November 2007 17:52, Harald Servat wrote:
> > Hello to all,
> >
> >   I'm working on SGI Altix machine (IA64) which provides its own MPI
> > library. It is installed under /usr.
> >
> >   I've installed OpenMPI 1.2 on my own user area in order to do some tests.
> >   However, when I link the test application with the mpicc from OpenMPI
> > and the command line contains -L /usr/lib mpicc fails telling me that
> > it's unable to find some symbols from the OpenMPI lib (I suppose that it
> > tries to use /usr/lib/libmpi.* instead of $OMPI_HOME/lib/libmpi.*).
> >
> >   Shouldn't mpicc force the usage of $OMPI_HOME/lib/libmpi* at the link
> > stage and avoid other MPI libraries?
> >
> > Thank you!,
> >
> > **
> >
> > harald@bscsmp01:~>
> > /home/Computacional/harald/aplic/openmpi/1.2/bin/mpicc prova-mpi.c
> > harald@bscsmp01:~>
> > /home/Computacional/harald/aplic/openmpi/1.2/bin/mpicc prova-mpi.c
> > -L/usr/lib
> > /tmp/ccIsf1pD.o: In function `main':
> > prova-mpi.c:(.text+0x61): undefined reference to `ompi_mpi_comm_world'
> > prova-mpi.c:(.text+0x70): undefined reference to `ompi_mpi_comm_world'
> > collect2: ld returned 1 exit status
> >
> > and prova-mpi.c is like this
> >
> > #include <mpi.h>
> >
> > int main (int argc, char *argv[])
> > {
> >         int r;
> >
> >         r = MPI_Init (&argc, &argv);
> >         r = MPI_Barrier (MPI_COMM_WORLD);
> >         r = MPI_Finalize();
> > }
> >
> > Regards,
> >
> > _______________________________________________
> > users mailing list
> > us...@open-mpi.org
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
> 
> -- 
> ----------------------------------------------------------------
> Dipl.-Inf. Rainer Keller   http://www.hlrs.de/people/keller
>  HLRS                          Tel: ++49 (0)711-685 6 5858
>  Nobelstrasse 19                  Fax: ++49 (0)711-685 6 5832
>  70550 Stuttgart                    email: kel...@hlrs.de     
>  Germany                             AIM/Skype:rusraink
> 
> "Emails save time, not printing them saves trees!"

-- 
================================================================================
   o//o Harald Servat Gelabert (harald at cepba dot upc dot edu)
  o//o  Centre Europeu de Paral.lelisme de Barcelona (CEPBA)
 o//o   Tel: +34-93-401 74 20 Fax: +34-93-401 25 77
o//o    c/Jordi Girona, 1-3, Modul C6 Despatx E203. E-08034 Barcelona, Catalunya
================================================================================
The consciousness of AC encompassed all of what had once been a Universe
and brooded over what was now Chaos. Step by step, it must be done.
And AC said, "LET THERE BE LIGHT!"
And there was light.
== Isaac Asimov, The Last Question

Reply via email to