/** * kernel that computes next generation of the game of life * @param cells_in input array of (n+2)x(n+2) cells * @param cells_out output array of (n+2)x(n+2) cells * @param ptr bitmap image updated on CPU * @param size dimension of the game (with borders = n+2) */ void kernel(CellType *cells_in, CellType *cells_out, ImagePoint *img, const int size) { // for each line in [1,n] for (int y=1; y