Posted in Uncategorized

Installation MPI on Windows, Mac and Ubuntu

(If you meet any errors and need help, please leave them in the comments.)

Windows

1. Install Microsoft Visual Studio.

2. Install Microsoft MPI (MSDN)
Find here.

3. Test

step2

 

 

Install Open MPI in Ubuntu 14.04, 13.10

 

1. Download the latest version of OpenMPI:

Go to https://www.open-mpi.org/software/ompi/v1.10/, download the first one (openmpi-1.10.2.tar.bz2):

2. Open a terminal, install dependencies (you could add “sudo” before some of the commands if you are meeting errors!):

sudo apt-get install libibnetdisc-dev
3. Decompress the download file:

sudo tar -xvf openmpi-1.10.2.tar.bz2

cd openmpi-1.10.2
4. Configure the installation file
./configure –prefix=”/home/$USER/.openmpi”
5. Install OpenMPI (This path will take time to complete, few minutes)

make

sudo make install
6. Setup path in Environment Variable

export PATH=”$PATH:/home/$USER/.openmpi/bin”
export LD_LIBRARY_PATH=”$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/”
7. Test if install was successful

mpirun
Result should show ‘How to use’ message:

test

Install Open MPI in Mac

1. Download the latest version of OpenMPI:

Go to https://www.open-mpi.org/software/ompi/v1.10/, download the first one (openmpi-1.10.2.tar.bz2):

2. Open a terminal, install dependencies:

sudo apt-get install libibnetdisc-dev
3. Decompress the download file:

tar -xvf openmpi-1.10.2.tar.bz2

cd openmpi-1.10.2
4. Configure the installation file
./configure –prefix=/usr/local/openmpi
5. Install OpenMPI (This path will take time to complete, few minutes)

make

sudo make install
6. Setup path in Environment Variable

export MPI_DIR=/usr/local/openmpi
echo $PATH
export PATH=/usr/local/openmpi/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/openmpi/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
7. Test if install was successful

mpirun
Result should show ‘How to use’ message:

test

Author:

Keep calm and update blog.

2 thoughts on “Installation MPI on Windows, Mac and Ubuntu

  1. Hi Irene,
    After a lot of trying I’m still having problems trying to run MPI on Windows. I’ve followed all the instructions and I get this error when I try to run it.

    
    C:\Users\user\Documents\Visual Studio 2015\Projects\FirstMPI>mpiexec -n 4 FirstMPI
    ERROR: Error reported: failed to launch 'FirstMPI' on LAPTOP
    Error (5) Access is denied.
    

    My machine is not that powerful so I haven’t tried Linux on VMWare. Any thoughts as to what could be the problem?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s