Solution to Question 5

To see which node sent which message, type this command: Then run the program again. The output should look something like this: Notice that the messages may appear in any order; task 0 is not necessarily first.

If you compiled the sample program with one of the HPF compilers, the output will look different. Only one message, the one from node 0, will be displayed. This is because HPF funnels all output through one node. The program still ran correctly, and did run in parallel on the number of nodes you requested. Later exercises will give better examples of parallel output from an HPF program.