Skip to content

A C++ program to simulate Conway's Game of Life, with the best scalability between OpenMP and MPI

Notifications You must be signed in to change notification settings

hariprasadr1hp/GameofLife3D_HPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life (Hybrid OpenMP/MPI)

A C++ program to simulate the cellular automaton in three dimensions. Finds the best scalability (between OpenMP and MPI) that can be achieved.

In the standard game, cells that have exactly Fl = Fu = 6 neighbors are born in the next time step.

Cells that have El = 5 or Eu = 7 living neighbors will survive to the next time step.

Cells that only fewer than El = 5 neighbors will die before the next time step from loneliness.

Cells that have more than Eu = 7 neighbors, will die before the next time step from overpopulation (or lack of resources).

The game, if uses the above rule, then (El,Eu,Fl,Fu) = (5,7,6,6)

Non-Periodic Boundary conditions are considered.

The following plots show the scalabilty that can be achieved using MPI and OpenMP.

gridvstime

processvstime

The communication between grid chunks is handled using MPI and the convolutional operation using OpenMP.

About

A C++ program to simulate Conway's Game of Life, with the best scalability between OpenMP and MPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages