Parallel Game of Life explores parallel programming techniques using OpenMP and MPI to optimize the simulation of the classic Game of Life across shared and distributed memory systems.
@IST
Master in Computer Science and Computer Engineering
Parallel and Distributed Computing - Group 03
Summer Semester of 2023/2024
The project focuses on gaining experience in parallel programming on shared and distributed memory systems, utilizing OpenMP and MPI, respectively. The task involves implementing sequential and parallel versions of the 3D Game of Life.
-
serial/
: Contains the source code files for the serial implementation, along with a Makefile for compilation. Additional source files are included. -
omp/
: Contains the source code files for the OpenMP implementation, along with a Makefile for compilation. Similar to the serial directory, additional source files and a report are included. -
mpi/
: Contains the source code files for the MPI implementation, along with a Makefile for compilation. Additional source files and a report are included as in the other directories.
To compile and run the code, enter in the respective directory of the version you want to run.
To compile the code, use the provided Makefile. Ensure you have the necessary dependencies installed.
To run the code:
- For the serial implementation:
./life3d <parameters>
- For the OpenMP implementation:
./life3d <parameters>
- For the MPI implementation:
mpirun -np <num_processes> ./life3d <parameters>
Replace <parameters>
with the required input parameters.