[mpich-discuss] issues when writing a simple makefile to build MPI programs

clara clarazhang at gmail.com
Fri Jun 24 10:00:57 CDT 2011


I think the default installed mpich2 in 64-bit ubuntu is in x86_64 mode.
When I try to compile/link an MPI program in 32-bit mode, there is an error
below:
/usr/lib/libmpich.so: file not recognized: File format not recognized

How can I configure the compile/link flags? Do I need to rebuild mpich2 to
get a 32-bit libraries? Or is there any 32-bit libraries coexisted with
64-bit libraries?  Thanks.

Below is the output version information of the default installed MPICH2:
MPICH2 Version:         1.2.1p1
MPICH2 Release date:    Unknown, built on Tue Apr 27 15:06:31 UTC 2010
MPICH2 Device:          ch3:nemesis
MPICH2 configure:       --build=x86_64-linux-gnu --prefix=/usr
--includedir=${prefix}/include --mandir=${prefix}/share/man
--infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
--libexecdir=${prefix}/lib/mpich2 --disable-maintainer-mode
--disable-dependency-tracking --disable-silent-rules --srcdir=.
--enable-sharedlibs=gcc --prefix=/usr --enable-f90 --sysconfdir=/etc/mpich2
--includedir=/usr/include/mpich2 --docdir=/usr/share/doc/mpich2
MPICH2 CC:      gcc -g -O2 -g -Wall -O2 -O2
MPICH2 CXX:     c++ -g -O2 -g -Wall -O2 -O2
MPICH2 F77:     gfortran -g -O2 -O2
MPICH2 F90:     f95  -O2

- Clara

On Fri, Jun 24, 2011 at 12:08 AM, Pavan Balaji <balaji at mcs.anl.gov> wrote:

> Clara,
>
>
> On 06/23/2011 10:53 PM, clara wrote:
>
>> If I only use shared memory communication among processes on a single
>> node, how can I configure the mpich2.1.4 (except --with-pm=gforker) in
>> order to link libraries as little as possible?
>>
>
> Shared memory communication support comes by default in MPICH2. You don't
> need to pass any special configure options; not even --with-pm=gforker.
> Unfortunately, all libraries are still required to be linked with even when
> only shared memory support is needed.
>
>  -- Pavan
>
>
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110624/e19eff73/attachment.htm>


More information about the mpich-discuss mailing list