MPICH

From Lazarus wiki
Jump to navigationJump to search

Overview

MPICH is a free implementation of MPI (Message Passing Interface) for distributed memory applications. The latest version MPICH2 implements the MPI-2 standard.

NOTE: The MPICH2 package is under construction and will be announced soon on this page.

The MPICH2 pascal package contains the bindings (= pascal translations of the c header files), which allows pascal programs to use the same variables and functions as c programs would do. So, you can easily convert c examples for MPI to pascal.

Tutorial

Installation

First you need to install the MPICH2 library on all computers of your cluster. A cluster can be any set of computers / virtual machines. They do not need to be homogeneous. Your cluster can contain for example Windows and Linux machines, with different number of CPUs and memory. On your development machines, where you compile your application, you must install the development libraries and FPC too.

Ubuntu / Debian

Under ubuntu/debian you can install the following packages: libmpich-mpd1.0-dev mpich-mpd-bin

Install from source

Download the mpich2-1.0.3.tar.gz from http://www-unix.mcs.anl.gov/mpi/mpich2/ and unpack them.

There's a how-to for installing Mpich2 in Ubuntu/Debian in Ubuntu Wiki : https://wiki.ubuntu.com/MpichCluster

ToDo: explain how to compile and install them.