<!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> </DIV>
<DIV dir=ltr align=left><SPAN class=665071717-26112008><FONT face=Arial
color=#0000ff size=2>Rajeev</FONT> </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><<A
href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</A>></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> </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><<A
href="mailto:chan@mcs.anl.gov"
target=_blank>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>----- "Waruna Ranasinghe" <<A href="mailto:warunapww@gmail.com"
target=_blank>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"
target=_blank>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"
target=_blank>mpich-discuss-bounces@mcs.anl.gov</A> [mailto:<BR>>
> <A href="mailto:mpich-discuss-bounces@mcs.anl.gov"
target=_blank>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"
target=_blank>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></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>