-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameOfLife_cpu.cpp
More file actions
30 lines (28 loc) · 1.33 KB
/
Copy pathGameOfLife_cpu.cpp
File metadata and controls
30 lines (28 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
////////////////////////////////////////////////////////////////////////////////
//
// CUDA implementation of "Conway's Game of Life" cellular automaton.
// https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
//
// This is a coding skills demonstration created by Aaron Mosher.
// https://github.com/AaronM686
//
// Makefile and boilerplate support code is based on Nvidia samples "Template"
// You will need the Samples directory to compile this, since
// I rely on several helper-functions they provide to streamline the code.
//
////////////////////////////////////////////////////////////////////////////////
// export C interface
extern "C"
void computeTick(unsigned int *reference, unsigned int *idata, const unsigned int len);
////////////////////////////////////////////////////////////////////////////////
//! Compute reference data set
//! Each element is multiplied with the number of threads / array length
//! @param reference reference data, computed but preallocated
//! @param idata input data as provided to device
//! @param len number of elements in reference / idata
////////////////////////////////////////////////////////////////////////////////
void
computeTick(unsigned int *reference, unsigned int *idata, const unsigned int len)
{
// printf("computeTick: not implemented yet\n");
}