summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2014-06-23 22:21:50 +0200
committerVolker Hoffmann <volker@cheleb.net>2014-06-23 22:21:50 +0200
commit849e595eea6fcf43ebf08d9cc92f1a06f66e7983 (patch)
tree4273f4655d59d1a63f618027a5ed4f8e09d7480f
parent4ea699acc593a16749fb8eb71a80f83d35f625a3 (diff)
strip debug printf
-rw-r--r--diff2d.cu17
1 files changed, 0 insertions, 17 deletions
diff --git a/diff2d.cu b/diff2d.cu
index 055520c..36df3de 100644
--- a/diff2d.cu
+++ b/diff2d.cu
@@ -24,9 +24,6 @@ __global__ void diffuse(float *uold_d, float *unew_d, int Ncells)
if(ity<Nhalo) {
u_s[ity][itx+Nhalo] = uold_d[(idy-Nhalo)*Ncells+idx];
u_s[Nthreads+2*Nhalo-1-ity][itx+Nhalo] = uold_d[(idy+Nthreads)*Ncells+idx];
- if(ity==0 && itx==0) {
- //printf("%i %i %i %i %i %.16f\n", blockIdx.x, blockIdx.y, Nt+2*Nhalo-1-ity, itx+Nhalo, (idy+Nt)*N+idx, u_s[Nt+2*Nhalo-1-ity][itx+Nhalo]);
- }
}
// fill in block boundaries
@@ -42,17 +39,6 @@ __global__ void diffuse(float *uold_d, float *unew_d, int Ncells)
if(idx>0 && idx<Ncells-1 && idy>0 && idy<Ncells-1) {
unew_d[idy*Ncells+idx] = (u_s[ity+Nhalo][itx+Nhalo] + u_s[ity-1+Nhalo][itx+Nhalo] + u_s[ity+1+Nhalo][itx+Nhalo] + u_s[ity+Nhalo][itx-1+Nhalo] + u_s[ity+Nhalo][itx+1+Nhalo])/5.f;
}
-
- //printf("%i %i %.2e\n", idx, idy, unew_d[idy*N+idx]);
- if(blockIdx.x == 1 && blockIdx.y == 0) {
- if(itx==0 && ity==31) {
- // printf("%.16f %.16f %.16f %.16f %.16f %.16f\n", u_s[ity+Nhalo][itx+Nhalo], u_s[ity-1+Nhalo][itx+Nhalo], u_s[ity+1+Nhalo][itx+Nhalo], u_s[ity+Nhalo][itx-1+Nhalo], u_s[ity+Nhalo][itx+1+Nhalo], unew_d[idy*Ncells+idx]);
- }
- //if(u_s[ity+Nhalo][itx+Nhalo] != 0.f) {
- // printf("%i %i %.16f\n", itx, ity, u_s[ity+Nhalo][itx+Nhalo]);
- //}
- }
-
}
__global__ void updateMem(float *uold_d, float *unew_d, int Ncells)
@@ -60,9 +46,6 @@ __global__ void updateMem(float *uold_d, float *unew_d, int Ncells)
int idx = blockIdx.x * blockDim.x + threadIdx.x;
int idy = blockIdx.y * blockDim.y + threadIdx.y;
uold_d[idy*Ncells+idx] = unew_d[idy*Ncells+idx];
- if(idx==32 && idy==32) {
- // printf("%.16e\n", uold_d[idy*Ncells+idx]);
- }
}
int main()