Hi
I'm having problems piping the standard output from a paralell mpi program
to a file. I'm using NAG 4.2 f95 compiler under Mac OS X 10.2.6. This is the
actual command I use:
(mpirun -v -nw C -wd /Osiris/PADwake05.2D -s h -x RUNDIR,RUNNAME
/usr/slocal/osiris/bin/osiris.2D.e > $RUNDIR/osiris.stdout) >&
$RUNDIR/osiris.stderr
If I do a tail -f osiris.stdout, instead of one line showing up at a time
(as they are beeing written by our code) the command freezes for a while and
then outputs a few hundred lines. Sometimes this actually ends up freezing
the code.
If I don't pipe the output to file, the screen output appears to be ok (i.e.
one line shows up at a time).
This appears to be related with the interaction with NAG and LAM under Mac
OS X 10.2.x. The same code/launch script behaved as expected using the
Absoft compiler instead. The -npty option does not make a difference, and
the behavior is the same under lam-7.0b13 and lam-6.5.9.
Any ideas?
Thanks in advance, Ricardo
--
Ricardo Fonseca
Researcher
Grupo de Lasers e Plasmas
Centro de Física dos Plasmas
Instituto Superior Técnico
Av. Rovisco Pais
1049-001 Lisboa
PORTUGAL
Tel: +351 21 8419202
Fax: +351 21 8464455
Web: http://cfp.ist.utl.pt/golp
|