Hi Rajeev,<br>Here&#39;s test programme. It&#39;s just for testing. The results I got, are in the read me file in the attachment<br><br>Thank You<br>Waruna<br><br><div class="gmail_quote">2008/11/27 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">In that case, what kind of program are you running? Can you 
send us a small test program.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Rajeev</font></span></div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div dir="ltr" align="left" lang="en-us">
  <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 9:05 PM<div><div></div><div class="Wj3C7c"><br><b>To:</b> 
  <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><b>Subject:</b> Re: [mpich-discuss] Clarification 
  needed on runningprocessesonMPICH2<br></div></div></font><br></div><div><div></div><div class="Wj3C7c">
  <div></div>Hi Rajeev,<br>There&#39;s no doubt that process runs on all 3 
  machines.<br>I have tried cpi example and it prints the hostnames of 3 
  machines<br><br>mpiexec -l -n 3 &lt;path to process&gt;<br>(the same path is 
  available in all 3 machines)<br><br>Thank you<br>Waruna<br><br><br>
  <div class="gmail_quote">2008/11/26 Rajeev Thakur <span dir="ltr">&lt;<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a>&gt;</span><br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>
    <div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" 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></span>&nbsp;</div>
    <div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Rajeev</font>&nbsp;</span></div><br>
    <blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
      <div dir="ltr" align="left" lang="en-us">
      <hr>
      <font face="Tahoma" size="2">
      <div><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 
      11:07 AM
      <div>
      <div></div>
      <div><br><b>To:</b> <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><b>Subject:</b> Re: 
      [mpich-discuss] Clarification needed on running 
      processesonMPICH2<br></div></div></font><br></div>
      <div>
      <div></div>
      <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" target="_blank">thakur@mcs.anl.gov</a>&gt;</span><br>
      <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
        <div>
        <div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" 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 color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
        <div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Rajeev</font></span></div><br>
        <blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
          <div dir="ltr" align="left" lang="en-us">
          <hr>
          <font face="Tahoma" size="2">
          <div><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><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>
          <div></div>Hi Anthony,<br>I&#39;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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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&#39;s stdout printed to your console.<br><br>A.Chan<br>
            <div>
            <div></div>
            <div>----- &quot;Waruna Ranasinghe&quot; &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&#39;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&#39;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 &quot;printf&quot;, you can try 
            adding<br>&gt; an<br>&gt; &gt; fflush(stdout) after the printf. You 
            don&#39;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></div></div></blockquote></div></blockquote></div><br></div></div></blockquote></div>
</blockquote></div><br>