<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">hello,<div><br></div><div>thx very much. '-m32' work!. Now, I can run /examples/cpi with two machines. I will try with my programs later on tonight, hopefully They will work like the cpi program.</div><div>thanks again ^^.</div><div><br></div><div>Cheers,</div><div>Gra<br><br>--- On <b>Sat, 7/18/09, Pavan Balaji <i>&lt;balaji@mcs.anl.gov&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Pavan Balaji &lt;balaji@mcs.anl.gov&gt;<br>Subject: Re: [mpich-discuss] I wonder if my mpdboot is the causeofproblem...help me!<br>To: mpich-discuss@mcs.anl.gov<br>Date: Saturday, July 18, 2009, 1:17 PM<br><br><div class="plainMail"><br>You have a few options:<br><br>1. Check if your processor supports 64-bit Operating Systems -- most modern processors do. If it does, just reinstall a 64-bit OS on
 the machine. This is the most efficient option.<br><br>2. Use the "-m32" CFLAGS to your MPICH2 configure -- this will build MPICH2 in 32-bit mode even on the 64-bit platform. Even your applications that are built with mpicc and friends will be built as 32-bit binaries. This will work, but you'll not be using the 64-bit capabilities of one of your machines, so the performance will not be optimal.<br><br>3. You could use MPICH-1 instead of MPICH2, though I wouldn't suggest doing that. In this case MPICH will internally do the data conversion for you, which will eat up some performance as well.<br><br> -- Pavan<br><br>On 07/18/2009 03:08 PM, Gra zeus wrote:<br>&gt; ello Rajeev,<br>&gt; *<br>&gt; *<br>&gt; ahh sorry about last email, my OS on two machine are different<br>&gt; <br>&gt; quadcore machine is 64bit and OS is "Linux myquadcore_machine 2.6.18-128.1.1.el5 #1 SMP Tue Feb 10 11:36:29 EST 2009 x86_64 x86_64 x86_64 GNU/Linux"<br>&gt; <br>&gt; <br>&gt;
 dual core is 32bit and IS is :: "Linux mydualcore_machine 2.6.18-128.1.6.el5PAE #1 SMP Wed Apr 1 07:24:39 EDT 2009 i686 i686 i386 GNU/Linux"<br>&gt; <br>&gt; Are these the cause of my problem? Do i need to run my MPI with the same 32-bit machines? Are there any configurations i need to set , to make them work togather?<br>&gt; <br>&gt; thank you very much,and sorry again about wrong OS info in my last email<br>&gt; <br>&gt; regards,<br>&gt; Gra <br>&gt; --- On *Sat, 7/18/09, Rajeev Thakur /&lt;<a ymailto="mailto:thakur@mcs.anl.gov" href="/mc/compose?to=thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>&gt;/* wrote:<br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;From: Rajeev Thakur &lt;<a ymailto="mailto:thakur@mcs.anl.gov" href="/mc/compose?to=thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Subject: Re: [mpich-discuss] I wonder if my mpdboot is the<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;causeofproblem...help me!<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;To: <a ymailto="mailto:mpich-discuss@mcs.anl.gov" href="/mc/compose?to=mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Date: Saturday, July 18, 2009, 8:42 AM<br>&gt; <br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Are the CPUs identical on them? Is one 32-bit, the other 64-bit?<br>&gt;&nbsp; &nbsp; &nbsp; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;------------------------------------------------------------------------<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;*From:* <a ymailto="mailto:mpich-discuss-bounces@mcs.anl.gov" href="/mc/compose?to=mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a><br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;[mailto:<a ymailto="mailto:mpich-discuss-bounces@mcs.anl.gov" href="/mc/compose?to=mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a>] *On Behalf Of *Gra zeus<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;*Sent:* Saturday,
 July 18, 2009 10:27 AM<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;*To:* <a ymailto="mailto:mpich-discuss@mcs.anl.gov" href="/mc/compose?to=mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;*Subject:* Re: [mpich-discuss] I wonder if my mpdboot is the<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;causeofproblem...help me!<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;one of them is quad core and another one is dual core. however,<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;OS,account,my password,install path are all the same.<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;I use this&nbsp; configuration "./configure<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;--prefix=/opt/localhomes/myname/mpich2-install" in both machines.<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;--- On *Sat, 7/18/09, Rajeev Thakur /&lt;<a ymailto="mailto:thakur@mcs.anl.gov"
 href="/mc/compose?to=thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>&gt;/* wrote:<br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;From: Rajeev Thakur &lt;<a ymailto="mailto:thakur@mcs.anl.gov" href="/mc/compose?to=thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Subject: Re: [mpich-discuss] I wonder if my mpdboot is the<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;cause ofproblem...help me!<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;To: <a ymailto="mailto:mpich-discuss@mcs.anl.gov" href="/mc/compose?to=mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Date: Saturday, July 18, 2009, 7:02 AM<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;What are the exact parameters you passed to configure when<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp;&nbsp;&nbsp;building MPICH2? Are the two machines identical?<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rajeev<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;------------------------------------------------------------------------<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;*From:* <a ymailto="mailto:mpich-discuss-bounces@mcs.anl.gov" href="/mc/compose?to=mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a><br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;[mailto:<a ymailto="mailto:mpich-discuss-bounces@mcs.anl.gov" href="/mc/compose?to=mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a>] *On Behalf Of<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;*Gra zeus<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp;&nbsp;&nbsp;*Sent:* Saturday, July 18, 2009 12:06 AM<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;*To:* <a ymailto="mailto:mpich-discuss@mcs.anl.gov" href="/mc/compose?to=mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;*Subject:* [mpich-discuss] I wonder if my mpdboot is the<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;cause ofproblem...help me!<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;hello,<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;thx for answer yesterday.<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;I tested my code in one machine (with"mpiexec -n 2<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;./myprog"),everything work fine - my program can use<br>&gt;&nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Send,MPI_Recv without any problems.<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;today, I setup mpich2 on two machines. Both machines can<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;communicate with others, ssh are tested on both<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;machines, mpd work, mpdringtest work.<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;however,when i run my program that use MPI_Send and<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Recv,&nbsp; MPI_Recv is blocked forever.<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;so i write new simple code to test MPI_Send,MPI_Recv<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;like this<br>&gt; <br>&gt;&nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;int myrank;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Status status;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Init( &amp;argc, &amp;argv );<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Comm_rank( MPI_COMM_WORLD, &amp;myrank );<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;if (myrank == 0)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;{<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;int senddata = 1;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Send(&amp;senddata, 1, MPI_INT, 1, 0, MPI_COMM_WORLD);<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;}<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp;&nbsp;&nbsp;else if (myrank == 1)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;{<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;int recvdata = 0;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Recv(&amp;recvdata, 1, MPI_INT, 0, 0, MPI_COMM_WORLD,<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&amp;status);<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;printf("received :%d:\n", recvdata);<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;}<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Finalize();<br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;i got this error<br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Assertion failed in file ch3_progress.c at line 489:<br>&gt;&nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;pkt-&gt;type &gt;= 0 &amp;&amp; pkt-&gt;type &lt; MPIDI_NEM_PKT_END<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;internal ABORT - process 1<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Fatal error in MPI_Finalize: Other MPI error, error stack:<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Finalize(315)..................: MPI_Finalize failed<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Finalize(207)..................:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPID_Finalize(92)..................:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;PMPI_Barrier(476)..................:<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Barrier(comm=0x44000002) failed<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPIR_Barrier(82)...................:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPIC_Sendrecv(164).................:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPIC_Wait(405).....................:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPIDI_CH3I_Progress(150)...........:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPID_nem_mpich2_blocking_recv(1074):&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPID_nem_tcp_connpoll(1667)........:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;state_commrdy_handler(1517)........:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPID_nem_tcp_recv_handler(1413)....: socket closed<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;////////////////////////////////////////////////////////////////<br>&gt;
 <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;I also tried example/cpi that come with install package<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;-&gt; result is the example program freezed, without any<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;errors.(I assume it stopped at MPI_Bcast())<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;Can anyone help me with this?<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;This code and my program can run smoothly when I use 1<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;machine (with option ,&nbsp; -n 2, -n 4 .... etc) but<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;whenever I start mpdboot with 2 machines, mpi processes<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;can't
 communicate with other mpi processes via<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;MPI_Send,MPI_Recv.<br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;thx,<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;gra<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br><br>-- Pavan Balaji<br><a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br></div></blockquote></div></td></tr></table><br>