Do you need a syncthreads at the end of the function?