Have you tried the
--output-filename <filename>
switch to mpirun?
man mpirun may help.

If you are running under a resource manager,
such as Torque, the stdout may be retained in
the execution node until the war is over ...
well ... the job finishes.

Gus Correa




On 03/30/2012 11:44 AM, Ralph Castain wrote:
Have you looked at "mpirun -h"? There are several options available for
redirecting output, including redirecting it to files by rank so it is
separated by application process.

In general, mpirun will send the output to stdout or stderr, based on
what your process does. The provided options just let you tag it, or
separate it by rank for convenience.


On Mar 30, 2012, at 9:22 AM, tyler.bal...@huskers.unl.edu
<mailto:tyler.bal...@huskers.unl.edu> wrote:

I am using openmpi-1.4.5 and I just tried |tee ~/outputfile.txt and it
generated the file named outputfile.txt but again it was empty
------------------------------------------------------------------------
*From:*users-boun...@open-mpi.org
<mailto:users-boun...@open-mpi.org>[users-boun...@open-mpi.org
<mailto:users-boun...@open-mpi.org>] on behalf of Marc Cozzi
[co...@nd.edu <mailto:co...@nd.edu>]
*Sent:*Friday, March 30, 2012 9:56 AM
*To:*Open MPI Users
*Subject:*Re: [OMPI users] redirecting output

Does Pcrystal |tee ./outputfile.txt work?

--marc
*From:*users-boun...@open-mpi.org
<mailto:users-boun...@open-mpi.org>[mailto:users-boun...@open-mpi.org]*On
Behalf Of*François Tessier
*Sent:*Friday, March 30, 2012 10:56 AM
*To:*Open MPI Users
*Subject:*Re: [OMPI users] redirecting output

Hello!

Did you try to redirect also the error output? Maybe your application
write its output on stderr.

François

On 30/03/2012 16:41,tyler.bal...@huskers.unl.edu
<mailto:tyler.bal...@huskers.unl.edu>wrote:
Hello all,

I am using the command*mpirun -np nprocs -machinefile machines.arch
Pcrystal*and my output strolls across my terminal I would like to send
this output to a file and I cannot figure out how to do so....I have
tried the general > FILENAME and > log & ....these generate files
however they are empty.....any help would be appreciated.

Thank you for reading

Tyler



_______________________________________________
users mailing list
us...@open-mpi.org  <mailto:us...@open-mpi.org>
http://www.open-mpi.org/mailman/listinfo.cgi/users
_______________________________________________
users mailing list
us...@open-mpi.org <mailto:us...@open-mpi.org>
http://www.open-mpi.org/mailman/listinfo.cgi/users



_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users

Reply via email to