diff --git a/src/life.cu b/src/life.cu index 620d2aa9ba750eefea9f71205aadd2f8a9be9c02..abab15650c861306dd43a2f294c2ecf63eafd7eb 100644 --- a/src/life.cu +++ b/src/life.cu @@ -54,13 +54,7 @@ __global__ void dummy_kernel(int* src, int* dest,int N, int M) 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 res = life_destiny(src,N,M,i,j); - if(src[index] == 1){ - printf("\n i = %d j = %d",i,j); - } dest[index] = res; } diff --git a/src/main.cu b/src/main.cu index 2afb147b8cc531f0f6a488e6ba054f782ec47243..81f94af01ef6fb23784213aab35544c71a2bef42 100644 --- a/src/main.cu +++ b/src/main.cu @@ -22,8 +22,8 @@ void write_pbm(int* array, int nRows, int nCols, const char *filename) { } int main() { - int H = 32; - int W = 32; + int H = 100; + int W = 100; int* domain = (int*)calloc(H*W, sizeof(int)); // carre au milieu du domaine, devrait rester statique domain[9*W+9] = 1; @@ -46,7 +46,7 @@ int main() { cudaEventRecord(start,0); - life(domain, H, W, 1, dim3(32, 32, 1), dim3(W/32, H/32, 1)); + life(domain, H, W, 500, dim3(32, 32, 1), dim3(W/32, H/32, 1)); cudaEventRecord(stop,0);