This repository was mainly made for Parallel programming lab, it will cover some topics in MPI and openMP libraries.
-
You'll need to install this package
-
Put this file somewhere inside your $HOME and untar it
$ tar xf openmpi-2.0.2.tar </code>
$ cd openmpi-2.0.2/ </code>
- Make sure you have XCode and command line tools installed
$ ./configure --prefix=$HOME/opt/usr/local
$ make all
$ make install
- After installation is done, you can verify it
$ $HOME/opt/usr/local/bin/mpirun --version
-> mpirun (Open MPI) 2.0.2
- You can compile and run your .c using
$HOME/opt/usr/local/bin/mpicc -o fileName ./fileName.c
$HOME/opt/usr/local/bin/mpirun -np 2 ./fileName
......