<!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=921024115-26112008><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 class=921024115-26112008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=921024115-26112008><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 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 2:15 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re: [mpich-discuss] Clarification
needed on running processes onMPICH2<BR></FONT><BR></DIV>
<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><<A
href="mailto:chan@mcs.anl.gov">chan@mcs.anl.gov</A>></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 class=Wj3C7c>----- "Waruna Ranasinghe" <<A
href="mailto:warunapww@gmail.com">warunapww@gmail.com</A>>
wrote:<BR><BR>> Hi Rajeev,<BR>> Actually this is not what I'm talking
about.<BR>> Say there are processes A and B<BR>> Process A utilize
100% of the cpu while it runs. The answer will<BR>> appear in<BR>> t1
seconds<BR>> Process B also utilize 100% of the cpu while it runs. The
answer will<BR>> appear<BR>> in t2 seconds<BR>><BR>> When I run
both the process A and B at the same time, The both answers<BR>>
will<BR>> appear in t1 + t2 seconds. where as I want to get the Process
A's<BR>> answer<BR>> first. (Here Process A is submitted before
Process B)<BR>><BR>> Is there anything that I can do to make this
happen.<BR>><BR>> Thank You,<BR>> Waruna<BR>><BR>> 2008/11/26
Rajeev Thakur <<A
href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</A>><BR>><BR>>
> If you are refering to the output of "printf", you can try
adding<BR>> an<BR>> > fflush(stdout) after the printf. You don't
have much control over<BR>> the order<BR>> > in which it is printed
from different processes.<BR>> ><BR>> > Rajeev<BR>>
><BR>> > ------------------------------<BR>> > *From:*
<A
href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</A>
[mailto:<BR>> > <A
href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</A>]
*On Behalf Of *Waruna Ranasinghe<BR>> > *Sent:* Tuesday, November 25,
2008 1:35 AM<BR>> > *To:* <A
href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A><BR>>
> *Subject:* [mpich-discuss] Clarification needed on running
processes<BR>> on<BR>> > MPICH2<BR>> ><BR>> > Hi
all,<BR>> > I submitted 3 processes at the same time using mpiexec.
the results<BR>> of each<BR>> > process appears only after all the
processes have finished. (I guess<BR>> that<BR>> > the way mpich
schedule it).<BR>> > What if I want to get the result of the process,
which was submitted<BR>> first,<BR>> > first. (like first in first
out).<BR>> ><BR>> > I use MPICH2 cluster in Fedora 8 (with
mpd)<BR>> ><BR>> > Thank you.<BR>> > Waruna
Ranasinghe<BR>> ><BR>>
><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>