Hands On excercise related to parallel compute using mpi
To install OpenMPI on (Ubuntu) Linux
Option 1:
- sudo apt-get install libopenmpi-dev
- sudo apt-get install openmpi-bin this will get enable the mpicc and mpirun command
Option 2:
- create folder named openmpi under $HOME
- Download latest openmpi-xxx.tar.gz from open-mpi.org
- sudo apt update && sudo apt install build-essential
- extract the zip file tar -xzvf openmpi-xxx.tar.gz => one more sub directory (compilation directory)
- run ./configure --prefix=$HOME/openmpi
- make all
- make install (it will create bin, lib... under OpenMPI)
- Update $PATH and $LD_LIBRARY_PATH
OpenMP on (Ubuntu) Linux gcc has option by default Reference material : Introduction to OpenMP - Tim Mattson (Intel) https://www.youtube.com/watch?v=nE-xN4Bf8XI&list=PLLX-Q6B8xqZ8n8bwjGdzBJ25X2utwnoEG