Skip to content

Files

Latest commit

 

History

History

Game-Of-Life

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Parallel implementation of Conway's game of life

Description

The program reads a vector from a file as shown in the input.txt file, where the two numbers in the first line specify the number of rows and columns and the '*' and ' ' symbolize a living or a dead cell. The algorithm runs in parallel for a given number of threads and generations and stores the result in a given txt file. It can also be compiled as a serial program since it is built using OpenMP.

Run the Parallel program

1 - make parallel

2 - ./a.out input_file_path num_of_generations output_file_path num_of_threads

Run the Serial program

1 - make serial

2 - ./a.out input_file_path num_of_generations output_file_path