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
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_at_bscsmp01:~>
> /home/Computacional/harald/aplic/openmpi/1.2/bin/mpicc prova-mpi.c
> harald_at_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
> users_at_[hidden]
> 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: keller_at_[hidden]
Germany AIM/Skype:rusraink
"Emails save time, not printing them saves trees!"
|