- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 with IBM MPI lib
has an env var to do this, is this possible w/ ifort + Intel MPI? Thanks,
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ben,
You can use the -l
mpirun option just for that purpose. Here is an excerpt from our Reference Manual:
-l
Use this option to insert the MPI process rank at the beginning of all lines written to the standard output.
I'm not sure the font here is clear but this is the letter "l" (as in line), and not the number 1.
Let us know if this helps.
Regards,
~Gergana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wow, that was easy, works great! Thanks a lot Gergana, your quick response is greatly appreciated!
--Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Glad it helped :)
Regards,
~Gergana
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page