NERSC logo National Energy Research Scientific Computing Center
  A DOE Office of Science User Facility
  at Lawrence Berkeley National Laboratory
 

Introduction to MPI

This tutorial is intended to be used as a basic introduction to parallel programming on the NERSC parallel machines. It introduces a number of concepts and the MPI message passing library.

This tutorial assumes that you are familiar with FORTRAN and basic UNIX commands.

Access to the examples can be gained with the following commands on the SP:

% module load training
% cd $EXAMPLES/mpi/intro
Basic Concepts
Introduces basic concepts of using MPI and passing simple messages.
Initialization
Initializing the library.
Data Types
Mapping MPI datatypes to machine data types.
Basic Send
Moving data to another task.
Basic Receive
Moving data from another task.
Broadcast
Sending data from one processor to all others.
Reduction
How to get data from all other processors.
Example
A small example using broadcast and reduction routines.

Related information


LBNL Home
Page last modified: Thu, 06 Mar 2008 22:53:43 GMT
Page URL: http://www.nersc.gov/nusers/help/tutorials/mpi/intro/
Web contact: webmaster@nersc.gov
Computing questions: consult@nersc.gov

Privacy and Security Notice
DOE Office of Science