Skip to content
Snippets Groups Projects
Commit c0938223 authored by ='s avatar =
Browse files

test

parent 3d8226b9
Branches
No related tags found
No related merge requests found
......@@ -52,10 +52,13 @@ __global__ void dummy_kernel(int* src, int* dest,int N, int M)
{
int i = blockIdx.x * blockDim.x + threadIdx.x;
int j = blockIdx.y * blockDim.y + threadIdx.y;
int index = ((j-1) * N + i);
//printf("\n i = %d j = %d",i,j);
int index = i*(M-1)+j;
//int index = i*(M-1)+j;
int res = life_destiny(src,N,M,i,j);
if(res == 1){
if(src[index] == 1){
printf("\n i = %d j = %d",i,j);
}
dest[index] = res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment