Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ redirect_from: '/introduction-to-groups-and-communicators/'
在以前的教程中,我们使用了通讯器 `MPI_COMM_WORLD`。
对于简单的程序,这已经足够了,因为我们的进程数量相对较少,并且通常要么一次要与其中之一对话,要么一次要与所有对话。
当程序规模开始变大时,这变得不那么实用了,我们可能只想一次与几个进程进行对话。
在本次教程中,我们将展示如何创建新的通讯器,以便一次与原始线程组的子集进行沟通
在本次教程中,我们将展示如何创建新的通讯器,以便一次与原始进程组的子集进行沟通

> **注意**- 本站点的所有代码都在 [GitHub]({{ site.github.repo }}) 上。本教程的代码在 [tutorials/introduction-to-groups-and-communicators/code]({{ site.github.code }}/tutorials/introduction-to-groups-and-communicators/code) 目录下。

Expand Down
2 changes: 1 addition & 1 deletion tutorials/mpi-reduce-and-allreduce/zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ redirect_from: '/mpi-reduce-and-allreduce/'
## MPI_Reduce

与 `MPI_Gather` 类似,`MPI_Reduce` 在每个进程上获取一个输入元素数组,并将输出元素数组返回给根进程。
输出元素包含减少的结果
输出元素包含归约的结果
`MPI_Reduce` 的原型如下所示:

```cpp
Expand Down