man mpirun
.
.
.
-output-filename, --output-filename <filename>
Redirect the stdout, stderr, and stddiag of all ranks to a rank-unique version of the specified filename. Any directories in the filename will automatically be created. Each output
file will consist of filename.rank, where the rank will be left-filled with zero's for correct ordering in listings.
.
.
.
|