[mpich-discuss] issues when writing a simple makefile to build MPI programs
Pavan Balaji
balaji at mcs.anl.gov
Sat Jun 25 12:19:18 CDT 2011
Hi Clara,
Even for a single node, Hydra is still the preferred process manager.
For most platforms, you might be able to discard -lopa.
Another trick you can do is to configure mpich2 with --enable-lib-depend
and --enable-shared. This will still create multiple libraries, but
libmpich.so will depend on libmpl.so and libopa.so, so these libraries
will automatically get loaded when linked against libmpich.so. This
trick is still experimental, and if things break you are on your own :-).
Hope that helps.
-- Pavan
On 06/25/2011 12:12 PM, clara wrote:
> I am doing some research about MPI implementation on a single node, so I
> wish I can get a mpich2 with necessary libraries as little as possible.
>
> On Sat, Jun 25, 2011 at 1:08 PM, Pavan Balaji <balaji at mcs.anl.gov
> <mailto:balaji at mcs.anl.gov>> wrote:
>
>
> On 06/25/2011 11:39 AM, clara wrote:
>
> Are -lopa -lmpl necessory for building programs with mpich2 using
> gforker process manager? Thanks.
>
>
> Yes, they are needed. Also, is there a reason for you to use gforker
> and not the default Hydra process manager?
>
>
> -- Pavan
>
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
>
>
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the mpich-discuss
mailing list