A collection of High-Performance Computing implementations using MPI and OpenMP, covering distributed memory, shared memory, and hybrid parallelism.
| Assignment | Topic | Tech |
|---|---|---|
| Assignment 1 | MPI point-to-point basics (max finder, Caesar cipher) | MPI |
| Assignment 2 | Collective ops & applications (primes, matrix sum) | MPI |
| Assignment 3 | Hybrid parallelism (vector-matrix mul, std deviation, array sum) | MPI + OpenMP |
- C compiler (
gcc≥ 9) - MPI implementation (
openmpiormpich) - OpenMP (bundled with GCC)
sudo apt update
sudo apt install build-essential openmpi-bin libopenmpi-devsudo dnf install gcc openmpi openmpi-develbrew install open-mpi gccgit clone https://github.com/philokaram/hpc-parallel-computing.git
cd hpc-parallel-computing
cd assignment2-mpi-apps
mpicc -O2 -o primes src/counting_primes_bcast.c -lm
mpirun -np 4 ./primes