Substitute this_group.wait() for __syncthreads()