Update perm_main.cu

added __syncthreads() in last warp in case compiler reordered in release mode(just in case)