---
title: 终止函数
description: MPI终止函数：
url: "https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/userg_hyperio_0040.html"
---

# 终止函数

#### 函数定义

MPI终止函数：

int PMPI_Finalize()

int MPI_Finalize()


#### 返回值

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


#### 错误码

| 错误码 | 描述 |
| --- | --- |
| MPI\_ERR\_OTHER | 其他类型的错误 |
