---
title: 使数据访问操作的语义保持一致
description: "MPI_File_sync(MPI_File fh)"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/userg_hyperio_0020.html
sourcePath: /source/zh/kunpenghpcs/hpckit/devg/userg_hyperio_0020.html
indexId: 3e919b63fbde96d82d43f811f48adbbda1f50f3ef5d1977b00c90e13f8bc86b158
---
# 使数据访问操作的语义保持一致

#### 函数定义

MPI_File_sync(MPI_File fh)

PMPI_File_sync(MPI_File fh)


#### 参数

| 参数名 | 描述 | 取值范围 | 输入/输出 |
| --- | --- | --- | --- |
| fh | 文件句柄 | 非空 | 输入 |


#### 返回值

返回MPI_SUCCESS。


#### 注意

中间件现接口返回值恒为MPI_SUCCESS，需要等MPI_File_close / PMPI_File_close接口调用后，数据才会落盘。
