Removing the second syncthreads() call in each kernel