Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 526 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 526 Bytes

Implementation of Game of Life using OpenMP

  1. Assign random values to each matrix element (0-dead, 1-alive)
  2. Change the state of each element using its current state and the states of its 8 neighbours:
    • if there are 5 or more 1s, change its state to alive
    • otherwise change its state to dead
  3. Repeat (2) at least 10 times and observe the changes in the matrix.

Compile and Run

gcc-7 -fopenmp -o main main.c
./main

This project was developed to be a parallel programming example with OpenMP.