OpenMPI
OpenMPI
Compile
Ubuntu
14.04
Install Dependencies
sudo apt-get install slurm-llnl libslurm-dev munge libpmi0-dev libmunge-dev
Download openmpi source
wget -O /tmp/openmpi-2.0.2.tar.gz https://www.open-mpi.org/software/ompi/v2.0/downloads/openmpi-2.0.2.tar.gz
PREFIX=/some/directory cd /tmp tar xvfz openmpi-2.0.2.tar.gz cd openmpi-2.0.2 #The libpmi.so is in a directory ./configure --prefix=$PREFIX --with-pmi=/usr --with-pmi-libdir=/usr --with-pmix=internal make -j4 all install
16.04
Install Dependencies
sudo apt-get install slurm-llnl libslurm-dev munge libpmi0-dev libmunge-dev
Download openmpi source
wget -O /tmp/openmpi-2.0.2.tar.gz https://www.open-mpi.org/software/ompi/v2.0/downloads/openmpi-2.0.2.tar.gz
PREFIX=/some/directory cd /tmp tar xvfz openmpi-2.0.2.tar.gz cd openmpi-2.0.2 ./configure --prefix=$PREFIX --with-pmi=/usr --with-pmi-libdir=/usr/lib/x86_64-linux-gnu --with-pmix=internal make -j4 all install
Debian Stretch
Install Dependencies
sudo apt-get install slurm-llnl libslurm-dev munge libpmi0-dev libmunge-dev
Download openmpi source
wget -O /tmp/openmpi-2.0.2.tar.gz https://www.open-mpi.org/software/ompi/v2.0/downloads/openmpi-2.0.2.tar.gz
OMPI_PREFIX=/some/directory cd /tmp tar xvfz openmpi-2.0.2.tar.gz cd openmpi-2.0.2 ./configure --prefix=$OMPI_PREFIX--with-pmi=/usr --with-pmi-libdir=/usr/lib/x86_64-linux-gnu --with-pmix=internal make -j4 all install
Usage
Create /etc/ld.so.conf.d/openmpi-2-0-2.conf
/path/to/openmpi/2.0.2/lib
Add the following to your .bashrc
export PATH=/path/to/openmpi/2.0.2/bin:$PATH
Update the library cache
sudo ldconfig
Now you can compile mpi applications using mpicc and use mpirun
Tags
None
Subscribers
None
- Last Author
- newellz2
- Last Edited
- Feb 23 2017, 10:53 AM