Skip to content

Simplified implementation of the Conway’s game to explore parallel computation on GPU

Notifications You must be signed in to change notification settings

litone01/Game-of-Life

Repository files navigation

Game Of Life on CUDA

Simplified implementation of the Conway’s game of life on CUDA. This used to be part of a project for the Parallel Computing at NUS where I learned about GPU computations.

How to run

make example ./export_example.out

A file export.out should be generated in the same directory as the executable. This file can be used as input into the GOI visualizer.

NOTE: EXPORTER ONLY WORKS ON HOST

The exporter module can only be used by calls from the host. It is outputting to a file after all.

It will not work on the GPU just by adding __device__ in front of each function. If you wish to export from the GPU, you will need to write code to copy the world state from the device to the host and then output to a file from the host. Note that printf when called from the device basically does this behind the scenes.

See https://stackoverflow.com/questions/21303713/writing-output-files-from-cuda-devices

About

Simplified implementation of the Conway’s game to explore parallel computation on GPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published