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

#### 函数定义

MPI_File_sync(MPI_File fh)

PMPI_File_sync(MPI_File fh)


#### 参数

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


#### 返回值

返回MPI_SUCCESS。


#### 注意

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