<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">randomly, a package sent by MPI_Send disappear, the reciever ended up</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">waiting for a package that never show up.&nbsp; This does not happen when the</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">apllication is not threaded.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I have completed the test using --enable-threads=funnel.&nbsp; The main thread is</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">the only one calling MPI.&nbsp; (actually, only the master of all MPI processes are</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">multi-threaded).&nbsp; It works much better, the horror is, it drops packages once </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">in many runs.&nbsp; So, nemesis is pretty much useless for any threaded application.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">BTW, the package dropping usually happen after more than 30,000,000 calls</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">to MPI_Send and MPI_Recv.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Any suggestion to debug this ?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">thanks</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">tan</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR><BR>&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Darius Buntinas &lt;buntinas@mcs.anl.gov&gt;<BR>To: chong tan &lt;chong_guan_tan@yahoo.com&gt;<BR>Cc: mpich-discuss@mcs.anl.gov<BR>Sent: Wednesday, April 11, 2007 2:22:39 PM<BR>Subject: Re: [MPICH] nemesis in a threaded code<BR><BR>
<DIV>Hmm, what do you mean by "dropping packages"?&nbsp;&nbsp;What symptoms are you seeing?<BR><BR>Darius<BR><BR>chong tan wrote:<BR>&gt; that is what I thought too.&nbsp;&nbsp;But without using --enable-threads, nemesis is<BR>&gt; dropping packages randomly in a threaded env.&nbsp;&nbsp;I will rebuild with<BR>&gt; --enable-threads=funnel to see what happen.<BR>&gt;&nbsp;&nbsp;<BR>&gt; tan<BR>&gt; <BR>&gt; <BR>&gt;&nbsp;&nbsp;<BR>&gt; ----- Original Message ----<BR>&gt; From: Darius Buntinas &lt;buntinas@mcs.anl.gov&gt;<BR>&gt; To: chong tan &lt;chong_guan_tan@yahoo.com&gt;<BR>&gt; Cc: mpich-discuss@mcs.anl.gov<BR>&gt; Sent: Wednesday, April 11, 2007 1:07:04 PM<BR>&gt; Subject: Re: [MPICH] nemesis in a threaded code<BR>&gt; <BR>&gt; Nemesis only supports thread_single.&nbsp;&nbsp;However, as long as you ensure<BR>&gt; that only one thread is making MPI calls, it should work fine.<BR>&gt; <BR>&gt; Darius<BR>&gt; <BR>&gt; chong tan wrote:<BR>&gt;&nbsp;&nbsp;&gt; with MPI
 calls done by the main thread, nemesis is dropping packages.&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&gt; Should I build MPICH<BR>&gt;&nbsp;&nbsp;&gt; using --enable-threads=funneled ?<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&gt; thanks<BR>&gt;&nbsp;&nbsp;&gt; tan<BR>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&gt;<BR>&gt;&nbsp;&nbsp;&gt; ------------------------------------------------------------------------<BR>&gt;&nbsp;&nbsp;&gt; 8:00? 8:25? 8:40? Find a flick &lt;<BR>&gt;&nbsp;&nbsp;&gt; <A href="http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&amp;#news" target=_blank>http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&amp;#news</A> <BR>&gt; &lt;<A href="http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&amp;#news" target=_blank>http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&amp;#news</A>&gt;&gt; in no time<BR>&gt;&nbsp;&nbsp;&gt; with theYahoo! Search movie showtime shortcut. &lt;<BR>&gt;&nbsp;&nbsp;&gt; <A
 href="http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&amp;#news" target=_blank>http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&amp;#news</A> <BR>&gt; &lt;<A href="http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&amp;#news" target=_blank>http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&amp;#news</A>&gt;&gt;<BR>&gt; <BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; TV dinner still cooling?<BR>&gt; Check out "Tonight's Picks" <BR>&gt; &lt;<A href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/" target=_blank>http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/</A>&gt; on Yahoo! TV.</DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>
      <hr size=1>We won't tell. Get more on <a href="http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265
">shows you hate to love</a><br>(and love to hate): <a href="http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265
">Yahoo! TV's Guilty Pleasures list.</a></body></html>