finish allreduce simulation