<!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.16705" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=433031220-14102008>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=433031220-14102008> Are you running out of memory ? Do you run out of
memory when you comment out WRITE statements (The process manager might have to
buffer some of the stdout before redirecting it to proc with
rank=0) ?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=433031220-14102008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=433031220-14102008>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=433031220-14102008>Jayesh</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Yaqi Wang [mailto:yaqiwang@gmail.com]
<BR><B>Sent:</B> Tuesday, October 14, 2008 2:55 PM<BR><B>To:</B> Jayesh
Krishna<BR><B>Cc:</B> mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re:
[mpich-discuss] Memory issue of MPICH2 when displaying a real
array<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>
<DIV>Yes, that is an infinite loop. But users can terminate the program at any
time with Control+C provided by the OS.</DIV>
<DIV> </DIV>
<DIV>I just want to show the memory cost keeps increasing if the program is not
stopped. Sorry for the confusing.</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>yaqi<BR><BR></DIV>
<DIV class=gmail_quote>On Tue, Oct 14, 2008 at 11:12 AM, Jayesh Krishna <SPAN
dir=ltr><<A
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</A>></SPAN> wrote:<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><FONT face=Arial color=#0000ff
size=2><SPAN>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN> I am
not a Fortran expert but what is the exit condition for the while loop
?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN>=====================================</SPAN></FONT></DIV>
<DIV class=Ih2E3d>
<DIV dir=ltr align=left><FONT size=+0><SPAN> do while (.true.)
<BR> call mpi_display_real_array(myid, a) <BR> enddo
</SPAN></FONT></DIV></DIV>
<DIV dir=ltr align=left><FONT size=+0><SPAN>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN>=====================================</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN> Looks like an infinite loop to me.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN>Jayesh</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> <A
href="mailto:owner-mpich-discuss@mcs.anl.gov"
target=_blank>owner-mpich-discuss@mcs.anl.gov</A> [mailto:<A
href="mailto:owner-mpich-discuss@mcs.anl.gov"
target=_blank>owner-mpich-discuss@mcs.anl.gov</A>] <B>On Behalf Of </B>Yaqi
Wang<BR><B>Sent:</B> Friday, October 10, 2008 8:28 PM<BR><B>To:</B> <A
href="mailto:mpich-discuss@mcs.anl.gov"
target=_blank>mpich-discuss@mcs.anl.gov</A><BR><B>Subject:</B> [mpich-discuss]
Memory issue of MPICH2 when displaying a real array<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c>
<DIV></DIV>
<DIV dir=ltr>
<DIV><A name=11cfc21b221d6111_msg_119703f22a1c428b></A>I am using MPICH2 1.0.7
with Windows XP SP3. The compiler is Intel <BR>Visual Fortran 10.1. <BR>
<P>I compiled the following code. <BR>====================== <BR>
<P>program aaa <BR> use MPI <BR> implicit none <BR> integer
:: ierr, myid, numprocs <BR> integer :: i <BR> real(8) :: a(10)
<BR>
<P> ! initialization of MPI <BR> CALL MPI_INIT( ierr ) <BR>
CALL MPI_COMM_RANK( MPI_COMM_WORLD, myid, ierr ) <BR> CALL
MPI_COMM_SIZE( MPI_COMM_WORLD, numprocs, ierr ) <BR>
<P> a = 0.0_8 <BR>
<P> do while (.true.) <BR> call
mpi_display_real_array(myid, a) <BR> enddo <BR>
<P> CALL MPI_FINALIZE(ierr) <BR>contains <BR>
<P> SUBROUTINE mpi_display_real_array(myid, num) <BR>
integer myid <BR> REAL(8) :: num(:)
<BR> WRITE(*,*) myid, num <BR> RETURN
<BR> END SUBROUTINE mpi_display_real_array <BR>end program aaa
<BR>
<P>================== <BR>
<P>And be able to run it with 'mpiexec -n 1 test.exe' on my local
<BR>computer. test.f90 is the name of the source code. Number of
<BR>processors here is irrelavant, I used 1. <BR>
<P>I noticed after running it, the memory cost of the 'smpd' process <BR>kept
increasing, which I did not expect. Anybody knows what I did <BR>wrong here?
<BR>
<P>Thanks. <BR></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P>
<P></P></DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>