Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

print mpi rank on stdout

Ben_Foster
Beginner
774 Views

When running an f90/mpi code, I would like to prefix all lines written to stdout with the rank of the mpi task, so after completion, I can sort all stdout to separate files for each mpi task. The AIX/xlf90 compiler has an env var to do this, is this possible w/ Intel? Thanks,
0 Kudos
2 Replies
TimP
Honored Contributor III
774 Views
I suspect you'd have to add this explicitly to your writes. Wouldn't that be a feature of the combination of xlf90 with some specific IBM implementation of MPI? If you're talking about Intel MPI, the place to ask would be the companion HPC forum. If some other MPI, the forum for that MPI implementation.
0 Kudos
Ben_Foster
Beginner
774 Views
Thanks TimP, I will post the question the HPC forum re Intel MPI.
0 Kudos
Reply