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