Nevermind, it's the end of the for loop body, not the function. The syncthreads is necessary to ensure the buffer is all usedfor blockIDX before we start work on the next block.