<br><br><div class="gmail_quote">On Mon, Oct 26, 2009 at 11:35 AM, Daniel Kidger <span dir="ltr"><<a href="mailto:daniel.kidger@bull.co.uk">daniel.kidger@bull.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Folks,<br>
<br>
I have an benchmark code that uses printf on each MPI process to print performance figures.<br>
On the system that the original author's developed on, the output from each process must have been line buffereed.<br><br></blockquote><div><br></div><div>As Ashley says, the job control system deals with this. I'm familiar with slurm, for example, which</div>
<div>line-buffers output from each rank and can prepend output with the rank ID. Slurm can also direct</div><div>output from each rank to an individual file. What job control system are you using? Check the</div><div>man page for the job launch command to see if there are switches to control output.</div>
<div><br></div><div>Other ideas - there are probably environment variables to tell the rank which rank it is, to find</div><div>out see the documentation or run a two-rank "printenv". Then you could redirect each rank's</div>
<div>output separately as program >output-from-rank-$RANK or whatever.</div><div><br></div><div>-L</div><div> </div></div>