Sunday, August 2, 2015

Installing OpenMPI implementation of MPI on CentOS or RedHat Enterprise Linux

Open MPI logo


The Open MPIProject is an open source Message Passing Interface 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.


1. Download the source files from the below link and untar it.


  
tar xvf openmpi-1.8.1.tar

tar xvf openmpi-1.8.1.tar

2. Go to the source directory
cd openmpi-1.8.1

3. Configure, compile and install by using the following commands
./configure --prefix=/home1/abhishek/installed/openmpi CC=gcc CXX=g++

./configure --prefix=/home1/abhishek/installed/openmpi CC=gcc CXX=g++ 
make all

make all 
      
make install
 
make install 
   
4. Compiler Settings
(a.) Add the following lines on the .bashrc file in the home directory(permanent) or export these environment variables from current working shell(temporary).
gedit ~/.bashrc
Add the path as
export PATH=/home1/abhishek/installed/openmpi/bin/:$PATH
export LD_LIBRARY_PATH=/home1/abhishek/installed/openmpi/ lib/:$LD_LIBRARY_PATH 
export INCLUDE=/home1/abhishek/installed/openmpi/include/: $INCLUDE
.bashrc
 
2. Source the .bashrc file to apply changes.
source ~/.bashrc

source ~/.bashrc 
Note: Current stable release of Open MPI:Open Source High Performance Computing is Version 3.0
Refer this link for more details:
https://www.open-mpi.org/software/ompi/v3.0/





Featured Post

Install Docker on CentOS

What is Docker? Docker Engine is an open-source containerization technology for building and containerizing your applications. More details ...

Most viewd