This guide was created for the 1.4.3 release of the OpenMPI libraries. This information is for both x64 processors running 64-bit Linux or x86 processors running 32-bit Linux.
OpenMPI is freely available. The OpenMPI webpage is at http://www.openmpi.org. From the webpage:
A High Performance Message Passing Library
The Open MPI Project is an open source MPI-2 implementation that is developed and maintained by a consortium of academic, research, and industry partners. Open MPI is therefore able to combine the expertise, technologies, and resources from all across the High Performance Computing community in order to build the best MPI library available. Open MPI offers advantages for system and software vendors, application developers and computer science researchers.
Features implemented or in short-term development for Open MPI include:
Downloaded the openmpi-1.4.3.tar.bz2 source code from the openMPI website at http://www.open-mpi.org/software/ompi/v1.4
None
Untar the OpenMPI package:
tar -xvjf openmpi-1.4.3.tar.bz2 cd openmpi-1.4.3
Set the environment for the code:
env CC=pgcc FC=pgfortran F77=pgfortran CXX=pgcpp CFLAGS=-fast FCFLAGS=-fast \ FFLAGS=-fast CXXFLAGS=-fast ./configure --prefix=/usr/local/openmpi
Build the code:
make >& make.log
Check the build:
make check
Install the code:
sudo su make install
OpenMPI can be built with support for a wide range of cluster interconnects The command configure --help will list all of the configuration options.
The build system used, running Ubuntu, had an issue with the installation which appears to be a Ubuntu issue:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.1/crtbeginS.o: no such file or directory (the current version of gcc installed is 4.4.3)
Creating a link to to 4.4.1 in /usr/lib/gcc/x86_64-linux-gnu is a quick way through the issue:
cd /usr/lib/gcc/x86_64-linux-gnu; ln -s 4.4 4.4.1