MPI Tutorials

If you’re interested in learning about MPI and how to write MPI programs, you’ve come to the right place. Below is a list of tutorials which can help you quickly get started writing your own, high performance MPI applications.

  1. Getting started with MPI using Visual Studio 2008 Express. In this tutorial, you will see how to setup and run your very first MPI application in Visual Studio. This tutorial also applies to Standard and Express editions of VS2005 and VS2008.
  2. Debugging an MPI application with Visual Studio. In this tutorial, you’ll see how to actually setup your debug environment for MPI applications. Even though the MPI Cluster Debugger is only available in the professional versions of Visual Studio, this tutorial will show you how to get by with just using the express version.
  3. Thread Communication with MPI. When writing a program designed to user multiple processors, thread communication is always important. This tutorial will show you some basics of thread communication with MPI. The example program will show you how to add a series of numbers using two different processors, then add the results up at the end.
  4. Sending large amounts of data between threads in MPI. In the previous example, only integers were sent between threads. This tutorial will show you how to send larger amounts of data. The program in this tutorial will count the number of times a word appears in a specified text file.
  5. Asynchronous Communication. This tutorial will cover the basics on how to communicate asynchronously between MPI threads. This type of communication often is used to increase overall program efficiency by avoiding stalls due to blocking communication functions.