Newsgroups: comp.parallel.mpi
From: "Andrew Mc.Ghee" <mcghee@sun.mech.uq.edu.au>
Subject: Re: MPICH stdout buffer size
Organization: Mechanical Engineering, UQ
Date: Mon, 26 May 1997 11:38:31 +1000
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <3388E997.7338@sun.mech.uq.edu.au>

Jonathan Eckstein wrote:
> 
> Hello, again:
> 
> Still under MPICH/P4/SPARC/Solaris 2/C++(compiler = Sun's CC), I have
> another question.  When running under mpirun, process 0 stdout output
> eventually appears on the "console", but is heavily buffered.  Is
> there a way to induce mpirun to use line buffering, or at least a
> smaller buffer size?  The MPICH doc doesn't seem to address this
> issue.
> 
> Thanks, Jonathan

Jonathan,
I don't know if this will help you, but we use the following command
when debugging to remove all output buffering;

	setbuf (stdout, NULL);

And this appears to work fine under MPICH for our applications.

regards,
Andrew Mc.Ghee
Mechanical Engineering
University of Queensland

