]> AND Private Git Repository - these_gilles.git/blob - paper_fast_median/code/kernSkel.cu
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
18 nov 13
[these_gilles.git] / paper_fast_median / code / kernSkel.cu
1 texture<short, 2, cudaReadModeElementType> tex_img_in ;
2
3 __global__ void kernel_ident( short *output, int w)
4 {  
5   int j = __mul24(blockIdx.x,blockDim.x) + threadIdx.x ; 
6   int i = __mul24( blockIdx.y, blockDim.y) + threadIdx.y ;
7
8   output[ __mul24(i, w) + j ] = tex2D(tex_img_in, j, i) ;
9
10 }
11
12