Version 2 vs 5
Version 2 vs 5
Content Changes
Content Changes
==Compile==
===Debian Stretch===
Install Dependencies
```
lang=bash
sudo apt-get install slurm-llnl libslurm-dev munge libpmi0-dev libmunge-dev
```
Download openmpi source
```
lang=bash
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
```
```
lang=bash
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
```
=Compile=
==Ubuntu==
===14.04====
Install Dependencies
```
lang=bash
sudo apt-get install slurm-llnl libslurm-dev munge libpmi0-dev libmunge-dev
```
Download openmpi source
```
lang=bash
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
```
```
lang=bash
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
```
lang=bash
sudo apt-get install slurm-llnl libslurm-dev munge libpmi0-dev libmunge-dev
```
Download openmpi source
```
lang=bash
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
```
```
lang=bash
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
```
lang=bash
sudo apt-get install slurm-llnl libslurm-dev munge libpmi0-dev libmunge-dev
```
Download openmpi source
```
lang=bash
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
```
```
lang=bash
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**
```
lang=bash
export PATH=/path/to/openmpi/2.0.2/bin:$PATH
```
Update the library cache
```
lang=bash
sudo ldconfig
```
Now you can compile mpi applications using **mpicc** and use **mpirun**
===Compile===
===Debian StretchUbuntu==
===14.04====
Install Dependencies
```
lang=bash
sudo apt-get install slurm-llnl libslurm-dev munge libpmi0-dev libmunge-dev
```
Download openmpi source
```
lang=bash
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
```
```
lang=bash
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
```
lang=bash
sudo apt-get install slurm-llnl libslurm-dev munge libpmi0-dev libmunge-dev
```
Download openmpi source
```
lang=bash
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
```
```
lang=bash
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
```
lang=bash
sudo apt-get install slurm-llnl libslurm-dev munge libpmi0-dev libmunge-dev
```
Download openmpi source
```
lang=bash
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
```
```
lang=bash
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**
```
lang=bash
export PATH=/path/to/openmpi/2.0.2/bin:$PATH
```
Update the library cache
```
lang=bash
sudo ldconfig
```
Now you can compile mpi applications using **mpicc** and use **mpirun**