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)]
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)]