---
title: 返回文件的进程组的副本
description: "MPI_File_get_group(MPI_File fh, MPI_Group *group)"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/userg_hyperio_0025.html
sourcePath: /source/zh/kunpenghpcs/hpckit/devg/userg_hyperio_0025.html
indexId: 33417a11876b4d71c97c41fe8b3117373a098b28cd0e90e351c301f0074a058858
---
# 返回文件的进程组的副本

#### 函数定义

MPI_File_get_group(MPI_File fh, MPI_Group *group)

PMPI_File_get_group(MPI_File fh, MPI_Group *group)


#### 参数

| 参数名 | 描述 | 取值范围 | 输入/输出 |
| --- | --- | --- | --- |
| fh | 文件（句柄） | 非空 | 输入 |
| \*group | 目标地址，存放group句柄 | 非空 | 输出 |


#### 返回值

- 成功：返回MPI_SUCCESS。
- 失败：返回错误码。


#### 错误码

| 错误码 | 描述 |
| --- | --- |
| MPI\_ERR\_FILE | 无效文件句柄 |
| MPI\_ERR\_GROUP | 无效group句柄参数 |
| MPI\_ERR\_OTHER | 其他错误 |
