X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/blobdiff_plain/b0cfcc742771497c83313352b59170ead2f99f40..ca38d6218b9ba6a0fd2e0b2126c6b38146504b8e:/BookGPU/Chapters/chapter3/code/medianGeneric.cu?ds=sidebyside diff --git a/BookGPU/Chapters/chapter3/code/medianGeneric.cu b/BookGPU/Chapters/chapter3/code/medianGeneric.cu old mode 100644 new mode 100755 index bf41842..dff2a92 --- a/BookGPU/Chapters/chapter3/code/medianGeneric.cu +++ b/BookGPU/Chapters/chapter3/code/medianGeneric.cu @@ -18,7 +18,7 @@ __global__ void kernel_medianR( short *output, for(ic=0; ic<256; ic++) { cpt += histogram[ ic ] ; - // selection of 50% percentile + // selection of the median value if ( cpt > ((2*r+1)*(2*r+1))>>1 ) break ; } output[ __mul24(i, j_dim) +j ] = ic ;