Parallel Programming Concepts

9. Examples

This section provides access to a sample program that demonstrates parallel techniques. A simple program uses the Message Passing Interface (MPI) to send the message "Hello, world" from one task to several others. The same program runs on each node, determining whether it is a sender or receiver through a variable named "me."

The equivalent program in HPF runs on each node, in parallel sets up the message and determines its own identity, and then sends that value ("me(i)") to node 0 where it is printed along with the message.