[mvapich-discuss] How to prefix the MPI rank before each line in the output log

perkinjo at cse.ohio-state.edu perkinjo at cse.ohio-state.edu
Fri Aug 8 09:44:39 EDT 2014


On Fri, Aug 08, 2014 at 07:44:47AM -0400, Thiago Quirino - NOAA Federal wrote:
> Hi, folks.
> 
> I compile a numerical weather prediction model with MVAPICH2 in one cluster
> and with SGI MPT in another. All MPI ranks output some information to the
> same log file at the beginning of a simulation. With SGI MPT I can use the
> option "-g" with "mpiexec_mpt" to prefix each log line with the respective
> MPI rank ID, e.g. mpiexec_mpt -prefix "[%g]" -np $PBS_NP ./NWP_model
> 
> Is there an equivalent option for MVAPICH2?

With mpiexec you can use the `-prepend-rank' option.  Let us know if
this fits your needs.

-- 
Jonathan Perkins


More information about the mvapich-discuss mailing list