[Paper Review] A performance Analysis of the Game of Life based on parallel algorithm
This paper evaluates parallel implementations of Conway's Game of Life using OpenMP, comparing one-dimensional (row/column) and two-dimensional domain decomposition strategies. The one-dimensional approach, particularly row-wise decomposition, achieves superior performance with speedups up to 3.45× on 8 threads, demonstrating that decomposition strategy critically impacts parallel efficiency in cellular automata simulations.
In this article, Conway's Game of Life using OpenMP parallel processing to simulate several different parallel methods, experimental performance results and compare to find the optimal solution of the parallelization of the Game of Life. Finally pointed out the importance of the design of parallel algorithms in solving the parallel problem.
Motivation & Objective
- To evaluate the performance of different parallelization strategies for Conway's Game of Life using OpenMP.
- To identify the most efficient decomposition strategy—either one-dimensional or two-dimensional—for maximizing execution speed.
- To demonstrate the impact of algorithmic design on parallel performance in shared-memory systems.
- To compare serial and parallel execution times across varying grid sizes and iteration counts.
- To highlight the importance of decomposition strategy in achieving optimal parallel performance for cellular automata.
Proposed method
- Implemented multiple parallel algorithms using OpenMP for shared-memory multiprocessing on multi-core systems.
- Applied one-dimensional decomposition by rows or columns to partition the Game of Life grid into contiguous segments for parallel processing.
- Used two-dimensional decomposition to divide the grid into rectangular sub-regions assigned to different threads, requiring boundary communication between adjacent regions.
- Employed the EasyX graphics library to render simulation states and visualize results.
- Measured execution time and speedup across different grid sizes (e.g., 120×60, 240×120) and iteration counts (500–2000 iterations).
- Used the speedup formula: SP = Serial-execution-time / Parallel-execution-time to evaluate performance gains.
Experimental results
Research questions
- RQ1How does one-dimensional row-wise decomposition compare to two-dimensional decomposition in terms of execution time and speedup for the Game of Life simulation?
- RQ2What is the maximum speedup achievable using OpenMP-based parallelization on a 4-thread system for different grid sizes?
- RQ3How does the number of iterations affect the performance of parallel versus serial implementations?
- RQ4Does the choice of decomposition strategy significantly influence the overall performance of the Game of Life simulation?
- RQ5To what extent can parallelization improve CPU resource utilization in compute-intensive cellular automata?
Key findings
- One-dimensional row-wise decomposition achieved the highest speedup, reaching 3.45× on 8 threads for a 240×120 grid with 2000 iterations.
- The two-dimensional decomposition strategy did not yield optimal performance and was outperformed by one-dimensional methods.
- Execution time for the parallel program decreased significantly with increasing thread count, showing strong scalability up to 8 threads.
- For the same grid size, execution time scaled linearly with the number of iterations, confirming predictable performance behavior.
- The 4-thread machine showed consistent performance gains: for example, 2000 iterations on a 120×60 grid achieved 3.02× speedup with 8 threads.
- The serial version took over 400 seconds for 2000 iterations on a 240×120 grid, while the parallel version reduced this to 126.42 seconds with 8 threads.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.