X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/blobdiff_plain/b0cfcc742771497c83313352b59170ead2f99f40..c08513a856650905e4751c8b52c7cbb661368a5f:/BookGPU/Chapters/chapter3/code/kernMedianRegTri9.cu diff --git a/BookGPU/Chapters/chapter3/code/kernMedianRegTri9.cu b/BookGPU/Chapters/chapter3/code/kernMedianRegTri9.cu old mode 100644 new mode 100755 index 363b181..c613706 --- a/BookGPU/Chapters/chapter3/code/kernMedianRegTri9.cu +++ b/BookGPU/Chapters/chapter3/code/kernMedianRegTri9.cu @@ -1,4 +1,4 @@ -__global__ void kernel_Median3RegTri9( short *output, +__global__ void kernel_Median3RegSort9( short *output, int i_dim, int j_dim) { int j = __mul24(blockIdx.x,blockDim.x) + threadIdx.x ; @@ -8,9 +8,9 @@ __global__ void kernel_Median3RegTri9( short *output, a0 = tex2D(tex_img_ins, j-1, i-1) ; // fetching values a1 = tex2D(tex_img_ins, j , i-1) ; a2 = tex2D(tex_img_ins, j+1, i-1) ; - a3 = tex2D(tex_img_ins, j-1, i) ; - a4 = tex2D(tex_img_ins, j , i) ; - a5 = tex2D(tex_img_ins, j+1, i) ; + a3 = tex2D(tex_img_ins, j-1, i ) ; + a4 = tex2D(tex_img_ins, j , i ) ; + a5 = tex2D(tex_img_ins, j+1, i ) ; a6 = tex2D(tex_img_ins, j-1, i+1) ; a7 = tex2D(tex_img_ins, j , i+1) ; a8 = tex2D(tex_img_ins, j+1, i+1) ;