]> AND Private Git Repository - book_gpu.git/blobdiff - BookGPU/Chapters/chapter4/code/convoGeneSh1.cu
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
ch15
[book_gpu.git] / BookGPU / Chapters / chapter4 / code / convoGeneSh1.cu
index dcb33793eda16bd3172b91819fea873283044342..95eed34620180cc9b22dbd8f62ad6cb1c0eab390 100644 (file)
@@ -11,7 +11,7 @@ __global__ void kernel_convoNonSepSh_8p(unsigned char *output, int j_dim, int r)
   int i = __umul24( blockIdx.y, blockDim.y) + threadIdx.y ;
   int j0= __umul24(blockIdx.x,blockDim.x)<<3 ;   // block's base point
   int idx = __umul24(i,j_dim) + j ;              // absolute index
   int i = __umul24( blockIdx.y, blockDim.y) + threadIdx.y ;
   int j0= __umul24(blockIdx.x,blockDim.x)<<3 ;   // block's base point
   int idx = __umul24(i,j_dim) + j ;              // absolute index
-  int idrow = threadIdx.y*(bdimX+k-1) ;          // line's offset in sh mem
+  int idrow = threadIdx.y*(bdimX+k-1) ;    // line's offset in sh mem
   
   // shared memory declaration
   extern __shared__ unsigned char roi8p[];
   
   // shared memory declaration
   extern __shared__ unsigned char roi8p[];