This software is released under the MIT License, see LICENSE.txt.
Fast Conway's Game of Life
- This is a CPP project for Conway's Game of Life.
- I use OpenGL, OpenMP and CUDA for high speed performance.
- Link to Youtube
Environment
This project uses cmake for multi-platform. I confirmed on the following environments:
- Windows 10, 64-bit
- Intel Core i7-6700@3.4GHz x 8 Core
- NVIDIA GeForce GTX1070 (CUDA10.0)
- Visual Studio 2017 64-bit
- Ubuntu 16.04 on VirtualBox
- Jetson Nano
How to start the project
The following library/app are needed:
- cmake-gui (for Windows), cmake (for Linux)
- CUDA (not mandatory)
Windows (Visual Studio)
- Start cmake-gui
- Set the same path of top CMakeLists.txt (and README.md) to
Where is the sourcecode
- Set the path you want to create project files to
Where to build the binaries
- Click
Configure
and choose the project type which you want to generate (e.g. Visual Studio 15 2017 Win64) - Click
Generate
, then the project files are created - Open
GameOfLife.sln
and setGameOfLife
project as a startup project, then build and run!!
Note:
In Visual Studio, you might need to build
Cuda library (AlgorithmCudaNormal, AlgorithmCudaGroup projects) individually, for some reasons. Otherwise, the libray won't be updated.
Linux
cd LifeGameFast
mkdir build && cd build
cmake ..
make -j4
cd GameOfLife
./GameOfLife &
Acknowledge
The following libraries are used in this projects. Thank you!! I made some modifications so that these libraries can be built with CMake.
- AntTweakBar
- Freeglut