By the way, I filed a bug on this issue:
https://svn.open-mpi.org/trac/ompi/ticket/1155
Brian
On Oct 2, 2007, at 8:57 AM, Brian Barrett wrote:
No, actually, my report isn't about that issue at all. I'm not
talking about making an entirely statically built application. I'm
talking about a statically compiled Open MPI with a dynamically
linked application and OFED. Take a look at the output of mpicc -
showme -- it's not adding *ANY* -l or -L options for InfiniBand.
This is something wrong with Open MPI's configure, which has
changed since v1.2. On v1.2, the same commands result in:
[10:54] brbarret@odin:pts/27 v1.2> mpicc -showme
gcc -I/u/brbarret/Software/x86_64-unknown-linux-gnu/ompi/devel/
include -pthread -L/usr/local/ofed/lib64 -L/u/brbarret/Software/
x86_64-unknown-linux-gnu/ompi/devel/lib -lmpi -lopen-rte -lopen-pal
-libverbs -lrt -lnuma -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
[10:55] brbarret@odin:pts/27 examples> make ring_c
mpicc -g ring_c.c -o ring_c
[10:55] brbarret@odin:pts/27 examples>
Brian
On Oct 1, 2007, at 10:21 PM, Jeff Squyres wrote:
This is a known issue; no one had expressed any desire to have it
fixed:
http://www.open-mpi.org/faq/?category=mpi-apps#static-mpi-apps
http://www.open-mpi.org/faq/?category=mpi-apps#static-ofa-mpi-apps
Feel free to file a ticket and fix if you'd like...
On Oct 1, 2007, at 11:56 PM, Brian Barrett wrote:
Hi all -
There's a problem with the OpenIB components when statically
linking. For whatever reason, the configure logic is not adding the
right -L and -l flags to the mpicc wrapper flags.
[17:26] brbarret@odin:pts/8 examples> mpicc -showme
gcc -I/u/brbarret/Software/x86_64-unknown-linux-gnu/ompi/devel/
include -pthread -L/u/brbarret/Software/x86_64-unknown-linux-gnu/
ompi/
devel/lib -lmpi -lopen-rte -lopen-pal -lnuma -ldl -Wl,--export-
dynamic -lnsl -lutil -lm -ldl
[17:42] brbarret@odin:pts/8 examples> make hello_c
mpicc -g hello_c.c -o hello_c
/u/brbarret/Software/x86_64-unknown-linux-gnu/ompi/devel/lib/
libmpi.a
(btl_openib_component.o)(.text+0x895): In function `openib_reg_mr':
/u/brbarret/odin/ompi/trunk/ompi/mca/btl/openib/
btl_openib_component.c:304: undefined reference to `ibv_reg_mr'
and many more, obviously.
Good luck,
Brian
_______________________________________________
devel mailing list
de...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel
--
Jeff Squyres
Cisco Systems
_______________________________________________
devel mailing list
de...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel