Skip to content

Parallel C and CUDA implementations of Conway's Game of Life

Notifications You must be signed in to change notification settings

Guido589/conway-game-of-life-parallel

Repository files navigation

Building and running the CPU implementations of Conway's game of life

The CPU implementations are located in folders named version-*, where * stands for a version number. To build and run them, the following commands must be executed in each folder:

$ cd version-*
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./cgol 
     [[-f file_name]     || [-s seed (default 0)]]
     [[-d duration_secs] || [-g max_generation]]
     [-t nr_threads]
     [-w width]
     [-h height]
     [--print_output (optional)]

Building and running the GPU implementation of Conway's game of life

The GPU implementation is located in the version-cuda folder. To build and run it, the following commands must be executed:

$ cd version-cuda
$ make
$ ./cgol.exe
     [[-f file_name]      || [-s seed (default 0)]]
     [[-d duration_secs]  || [-g max_generation]]
     [-tpb threads_per_block]
     [-w width]
     [-h height]
     [--print_output (optional)]

About

Parallel C and CUDA implementations of Conway's Game of Life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published