(If you meet any errors and need help, please leave them in the comments.)
Windows
- Install Microsoft Visual Studio.
- Install Microsoft MPI (MSDN)
Find here. - Test
Install Open MPI in Ubuntu 14.04, 13.10
- 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):
- 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
- 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”
- 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:
Install Open MPI in Mac
- 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):
- 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
- Test if install was successful
mpirun
Result should show ‘How to use’ message:
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.
My machine is not that powerful so I haven’t tried Linux on VMWare. Any thoughts as to what could be the problem?
LikeLike
Hi there, you can first go to Barry next week for the help 🙂 Or if you want you can take my Linux next Monday on the lab. Cheers.
LikeLike
Is it “sudo” for mac as well?
LikeLike
Yes!
LikeLike
The sudo apt-get command won’t work on mac right? what to do? aslo there is non executable file error.
LikeLike