next up previous
Next: The listing of Up: The LAM companion to Previous: Summary: the end

Lesson 2 -- collective communications

Now we are almost ready to merge with ``Using MPI...''. In all our future programs we will include as a preamble the body of the program developed in the first section. This insert is called preamble.c and, like all other programs of this tutorial, it can be obtained by ftp-anonymous from cisr.anu.edu.au, directory pub/papers/meglicki/mpi/simplempi, file preamble.c.

We also provide a listing of preamble.c in the next subsection, in case you cannot access our ftp area. There is nothing new in this listing, so you can skip it, if you already have preamble.c transferred to your directory.

In this lesson we will calculate using the formula

We will illustrate the use of simple collective communications and timing routines.

The program is called second.c and it can be also found in pub/papers/meglicki/mpi/simplempi.

As in the first lesson, we shall list second.c first. Next, we shall present its synopsis, we'll compile it and run it on the LAM engine. Then we shall discuss it in detail. And, finally, we shall summarise the new MPI issues covered in this section.





Zdzislaw Meglicki
Tue Feb 28 15:07:51 EST 1995