Skip to content

gokaytitrek/openmp-gameoflife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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.

About

Implementation of Game of Life using OpenMP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages