<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=665071717-26112008><FONT face=Arial 
color=#0000ff size=2>Make sure the processes are actually running on the 3 
machines. Try the cpi example in the examples directory. It prints out the 
hostname. How are you running the job?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=665071717-26112008></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=665071717-26112008><FONT face=Arial 
color=#0000ff size=2>Rajeev</FONT>&nbsp;</SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> mpich-discuss-bounces@mcs.anl.gov 
  [mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Waruna 
  Ranasinghe<BR><B>Sent:</B> Wednesday, November 26, 2008 11:07 AM<BR><B>To:</B> 
  mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re: [mpich-discuss] Clarification 
  needed on running processesonMPICH2<BR></FONT><BR></DIV>
  <DIV></DIV>Fedora 8 - MPICH2
  <DIV>one machine with core-2-duo - master</DIV>
  <DIV>two machines with one core</DIV>
  <DIV>all together 3 nodes<BR>
  <DIV><BR>
  <DIV class=gmail_quote>2008/11/26 Rajeev Thakur <SPAN dir=ltr>&lt;<A 
  href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</A>&gt;</SPAN><BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
    <DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>What 
    kind of environment are you running on (how many machines, how many cores 
    each)? </FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2>Rajeev</FONT></SPAN></DIV><BR>
    <BLOCKQUOTE 
    style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
      <DIV lang=en-us dir=ltr align=left>
      <HR>
      <FONT face=Tahoma size=2>
      <DIV class=Ih2E3d><B>From:</B> <A 
      href="mailto:mpich-discuss-bounces@mcs.anl.gov" 
      target=_blank>mpich-discuss-bounces@mcs.anl.gov</A> [mailto:<A 
      href="mailto:mpich-discuss-bounces@mcs.anl.gov" 
      target=_blank>mpich-discuss-bounces@mcs.anl.gov</A>] <B>On Behalf Of 
      </B>Waruna Ranasinghe<BR></DIV><B>Sent:</B> Wednesday, November 26, 2008 
      2:15 AM
      <DIV class=Ih2E3d><BR><B>To:</B> <A 
      href="mailto:mpich-discuss@mcs.anl.gov" 
      target=_blank>mpich-discuss@mcs.anl.gov</A><BR></DIV><B>Subject:</B> Re: 
      [mpich-discuss] Clarification needed on running processes 
      onMPICH2<BR></FONT><BR></DIV>
      <DIV>
      <DIV></DIV>
      <DIV class=Wj3C7c>
      <DIV></DIV>Hi Anthony,<BR>I'm sorry, in this case I have to disagree with 
      you.<BR>Because it is not max(t1,t2) but t1+t2 (this is the real result I 
      got)<BR>I use fflush(stdout) also<BR><BR>What I think is that, Cluster 
      runs two programmes alternatively.<BR>i.e. Process A runs for a while (say 
      t3 seconds) then process B for sometime and so on.<BR>Therefore, 
      ultimately both the processes will run for t1+t2<BR><BR>Cluster: 
      MPICH2<BR>Fedora 8<BR><BR>
      <DIV class=gmail_quote>2008/11/26 Anthony Chan <SPAN dir=ltr>&lt;<A 
      href="mailto:chan@mcs.anl.gov" 
      target=_blank>chan@mcs.anl.gov</A>&gt;</SPAN><BR>
      <BLOCKQUOTE class=gmail_quote 
      style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>If 
        process A and B are launched by mpiexec, the time taken<BR>by mpiexec 
        should be max(t1,t2) not t1 + t2. As Rajeev said,<BR>calling 
        fflush(stdout) after each printf() is the fastest way<BR>to get each 
        process's stdout printed to your console.<BR><BR>A.Chan<BR>
        <DIV>
        <DIV></DIV>
        <DIV>----- "Waruna Ranasinghe" &lt;<A href="mailto:warunapww@gmail.com" 
        target=_blank>warunapww@gmail.com</A>&gt; wrote:<BR><BR>&gt; Hi 
        Rajeev,<BR>&gt; Actually this is not what I'm talking about.<BR>&gt; Say 
        there are processes A and B<BR>&gt; Process A utilize 100% of the cpu 
        while it runs. The answer will<BR>&gt; appear in<BR>&gt; t1 
        seconds<BR>&gt; Process B also utilize 100% of the cpu while it runs. 
        The answer will<BR>&gt; appear<BR>&gt; in t2 seconds<BR>&gt;<BR>&gt; 
        When I run both the process A and B at the same time, The both 
        answers<BR>&gt; will<BR>&gt; appear in t1 + t2 seconds. where as I want 
        to get the Process A's<BR>&gt; answer<BR>&gt; first. (Here Process A is 
        submitted before Process B)<BR>&gt;<BR>&gt; Is there anything that I can 
        do to make this happen.<BR>&gt;<BR>&gt; Thank You,<BR>&gt; 
        Waruna<BR>&gt;<BR>&gt; 2008/11/26 Rajeev Thakur &lt;<A 
        href="mailto:thakur@mcs.anl.gov" 
        target=_blank>thakur@mcs.anl.gov</A>&gt;<BR>&gt;<BR>&gt; &gt; &nbsp;If 
        you are refering to the output of "printf", you can try adding<BR>&gt; 
        an<BR>&gt; &gt; fflush(stdout) after the printf. You don't have much 
        control over<BR>&gt; the order<BR>&gt; &gt; in which it is printed from 
        different processes.<BR>&gt; &gt;<BR>&gt; &gt; Rajeev<BR>&gt; 
        &gt;<BR>&gt; &gt; &nbsp;------------------------------<BR>&gt; &gt; 
        *From:* <A href="mailto:mpich-discuss-bounces@mcs.anl.gov" 
        target=_blank>mpich-discuss-bounces@mcs.anl.gov</A> [mailto:<BR>&gt; 
        &gt; <A href="mailto:mpich-discuss-bounces@mcs.anl.gov" 
        target=_blank>mpich-discuss-bounces@mcs.anl.gov</A>] *On Behalf Of 
        *Waruna Ranasinghe<BR>&gt; &gt; *Sent:* Tuesday, November 25, 2008 1:35 
        AM<BR>&gt; &gt; *To:* <A href="mailto:mpich-discuss@mcs.anl.gov" 
        target=_blank>mpich-discuss@mcs.anl.gov</A><BR>&gt; &gt; *Subject:* 
        [mpich-discuss] Clarification needed on running processes<BR>&gt; 
        on<BR>&gt; &gt; MPICH2<BR>&gt; &gt;<BR>&gt; &gt; Hi all,<BR>&gt; &gt; I 
        submitted 3 processes at the same time using mpiexec. the 
        results<BR>&gt; of each<BR>&gt; &gt; process appears only after all the 
        processes have finished. (I guess<BR>&gt; that<BR>&gt; &gt; the way 
        mpich schedule it).<BR>&gt; &gt; What if I want to get the result of the 
        process, which was submitted<BR>&gt; first,<BR>&gt; &gt; first. (like 
        first in first out).<BR>&gt; &gt;<BR>&gt; &gt; I use MPICH2 cluster in 
        Fedora 8 (with mpd)<BR>&gt; &gt;<BR>&gt; &gt; Thank you.<BR>&gt; &gt; 
        Waruna Ranasinghe<BR>&gt; &gt;<BR>&gt; 
      &gt;<BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>