Skip to content

bergolho1337/MPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MPI

This repository has several MPI programs, which solves different kind of parallel problems.

Pre-Requisites

- C/C++ compiler
- A working version of MPI installed on your system
- Python package: mpi4py

Installing and building MPI

Step 1) Download a stable version of OpenMPI

wget -nc https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.2.tar.gz

Step 2) Building OpenMPI from source

Create a folder to store the building files
cd ~
mkdir openmpi-build; mv Downloads/openmpi-4.0.2.tar.gz openmpi-build; cd openmpi-build
gunzip -c openmpi-4.0.2.tar.gz | tar xf -
cd openmpi-4.0.2
Run the configuration script by setting the instalation location of the MPI libraries and header files to /usr/local, so that CMake can easily find everything
./configure --prefix=/usr/local
Compile OpenMPI from source
sudo make all install