This project contains MPI implementations for sorting and stencil computation.
-
Update and upgrade your system: sudo apt-get update sudo apt-get upgrade
-
Install OpenMPI: sudo apt-get install libopenmpi-dev sudo apt-get install openmpi-bin
-
Verify installation: mpicc --version mpiexec --version
-
Compile: mpicc sort_all.c -o sortout
-
Execute: mpiexec --oversubscribe -np 4 ./sortout
-
Compile: mpicc stencil_all.c -o stencilout
-
Execute: mpiexec --oversubscribe -np 1 stencilout 100 10 50 1 1
The --oversubscribe
option allows more processes than available slots in Open MPI.