X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/blobdiff_plain/1b27427d56ddc474598ea928b11c31bcaf3f1e12..fd66513f28a83144dbb902570a63fc94787d95d2:/BookGPU/Chapters/chapter3/code/kernMedianForget1pix3.cu diff --git a/BookGPU/Chapters/chapter3/code/kernMedianForget1pix3.cu b/BookGPU/Chapters/chapter3/code/kernMedianForget1pix3.cu index a34d784..5a04bd2 100755 --- a/BookGPU/Chapters/chapter3/code/kernMedianForget1pix3.cu +++ b/BookGPU/Chapters/chapter3/code/kernMedianForget1pix3.cu @@ -11,8 +11,7 @@ __device__ inline void s(int* a, int* b) #define minmax5(a, b, c, d, e) s(a, b); s(c, d); min3(a, c, e); max3(b, d, e); #define minmax6(a, b, c, d, e, f) s(a,d); s(b, e); s(c, f); min3(a, b, c); max3(d, e, f); -__global__ void kernel_medianForget1pix3( short *output, - int i_dim, int j_dim) +__global__ void kernel_medianForget1pix3( short *output, int i_dim, int j_dim) { int j = __mul24(blockIdx.x,blockDim.x) + threadIdx.x ; int i = __mul24(blockIdx.y,blockDim.y) + threadIdx.y ;