__shared__ float tile[256];

int tid = threadIdx.x;
tile[tid] = input[blockIdx.x * blockDim.x + tid];
__syncthreads();               // ensure the whole tile is populated
float neighborSum = tile[tid] + tile[(tid + 1) % blockDim.x];
