On Tue, 18 Dec 2001, Rui Camacho wrote:
> I am trying to "include" the LAM/MPI funcions into Yap Prolog predicates
> to develop parallel Prolog application. However Yap Prolog requires
> libraries to be dynamic to be able to load foreign code. Does it make
> sense to have -lmpi dynamic? If is how can I generate/get a dynamic -lmpi?
Yes, you can. In order to build shared libraries for LAM, you will need
to rebuild from a source tarball. At configure time, specify
'--enable-shared'. LAM will be built with both shared and static
libraries.
A couple important notes. First, you will need to include more than just
libmpi.so in order to use LAM. If you run 'mpicc -showme', you can see
all the libraries LAM/MPI is going to link in. Second, not all the
packages that ship with LAM/MPI support shared libraries. You will not be
able to build ROMIO with shared library support.
Brian
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have a LAM/MPI day: http://www.lam-mpi.org/
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/
|