Thanks a lot.<br><br><div class="gmail_quote">On Fri, Jun 24, 2011 at 11:53 AM, Anthony Chan <span dir="ltr"><<a href="mailto:chan@mcs.anl.gov">chan@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
You need to rebuild mpich2 for 32bit. Set CFLAGS/CXXFLAGS/FFLAGS/FCFLAGS<br>
to -m32 (assume your system has the 32bit support).<br>
<br>
BTW, your install of 1.2.1p1 mpich2 is old, please upgrade if possible<br>
(the latest stable release is 1.4)<br>
<br>
A.Chan<br>
<div><div></div><div class="h5"><br>
----- Original Message -----<br>
> I think the default installed mpich2 in 64-bit ubuntu is in x86_64<br>
> mode.<br>
> When I try to compile/link an MPI program in 32-bit mode, there is an<br>
> error<br>
> below:<br>
> /usr/lib/libmpich.so: file not recognized: File format not recognized<br>
><br>
> How can I configure the compile/link flags? Do I need to rebuild<br>
> mpich2 to<br>
> get a 32-bit libraries? Or is there any 32-bit libraries coexisted<br>
> with<br>
> 64-bit libraries? Thanks.<br>
><br>
> Below is the output version information of the default installed<br>
> MPICH2:<br>
> MPICH2 Version: 1.2.1p1<br>
> MPICH2 Release date: Unknown, built on Tue Apr 27 15:06:31 UTC 2010<br>
> MPICH2 Device: ch3:nemesis<br>
> MPICH2 configure: --build=x86_64-linux-gnu --prefix=/usr<br>
> --includedir=${prefix}/include --mandir=${prefix}/share/man<br>
> --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var<br>
> --libexecdir=${prefix}/lib/mpich2 --disable-maintainer-mode<br>
> --disable-dependency-tracking --disable-silent-rules --srcdir=.<br>
> --enable-sharedlibs=gcc --prefix=/usr --enable-f90<br>
> --sysconfdir=/etc/mpich2<br>
> --includedir=/usr/include/mpich2 --docdir=/usr/share/doc/mpich2<br>
> MPICH2 CC: gcc -g -O2 -g -Wall -O2 -O2<br>
> MPICH2 CXX: c++ -g -O2 -g -Wall -O2 -O2<br>
> MPICH2 F77: gfortran -g -O2 -O2<br>
> MPICH2 F90: f95 -O2<br>
><br>
> - Clara<br>
><br>
> On Fri, Jun 24, 2011 at 12:08 AM, Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>><br>
> wrote:<br>
><br>
> > Clara,<br>
> ><br>
> ><br>
> > On 06/23/2011 10:53 PM, clara wrote:<br>
> ><br>
> >> If I only use shared memory communication among processes on a<br>
> >> single<br>
> >> node, how can I configure the mpich2.1.4 (except --with-pm=gforker)<br>
> >> in<br>
> >> order to link libraries as little as possible?<br>
> >><br>
> ><br>
> > Shared memory communication support comes by default in MPICH2. You<br>
> > don't<br>
> > need to pass any special configure options; not even<br>
> > --with-pm=gforker.<br>
> > Unfortunately, all libraries are still required to be linked with<br>
> > even when<br>
> > only shared memory support is needed.<br>
> ><br>
> > -- Pavan<br>
> ><br>
> ><br>
> > --<br>
> > Pavan Balaji<br>
> > <a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
> ><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> mpich-discuss mailing list<br>
> <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</div></div></blockquote></div><br>