Today, memory costs have declined and ALL mainstream MIMD distributed memory machines whether clusters of workstations/PC's or integrated systems such as T3D/ Paragon/ SP-2 have enough memory on each node to run UNIX or Windows NT
|
Thus printf today means typically that the node on which it runs will stick it out on "standard output" file for that node
-
However this is implementation dependent
|
If on other hand you want a stream of output with information in order
-
Starting with that from node 0, then node 1, then node 2 etc.
-
This was default on old Caltech machines but
|
Then in general you need to communicate information from nodes 1 to N-1 to node 0 and let node 0 sort it and output in required order
|
MPI-IO standard links I/O to MPI in a standard fashion
|