In this first MPI lesson we have covered a large number of MPI issues. We will summarise by listing MPI functions used in first.c:
MPI_Init
initialises the MPI system; explained in
section 3.4
MPI_Finalize
closes the MPI system; explained in section
3.4
MPI_Comm_size
finds the number of processes in the pool;
explained in section 3.4.1
MPI_Comm_rank
finds the rank number of a calling process;
explained in section 3.4.1
MPI_Get_processor_name
finds the name of a processor the
calling process runs on; explained in section 3.4.1
MPI_Attr_get
obtains the value of a communicator
attribute, for example, the host process rank or the ranks of
processes which can do I/O; explained in section 3.4.1
MPI_Send
sends a message; explained in section
3.4.2
MPI_Recv
receives a message; explained in section
3.4.2
MPI_Bcast
broadcasts a message; explained in section
3.4.3
In following lessons all example programs will begin by peforming the
operations described in first.c. We will be including a file
which contains those operations using the cpp #include
directive, so as to avoid cluttering the
code and the lessons with a repetitive material that has been covered
in this first lesson. See section 4.1 for the listing
of that file.