谁能帮助我了解MPI Communicator,组分区的工作原理? [英] Can anyone help me understand how MPI Communicator, Groups partitioning works?

查看:355
本文介绍了谁能帮助我了解MPI Communicator,组分区的工作原理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我了解MPI小组,内部和内部沟通者.我已经阅读了MPI文档( http://www. mpi-forum.org/docs/mpi-2.2/mpi22-report.pdf ),我无法很好地理解这些概念.我特别希望在Inter传播者领域中将任何代码划分为一个传播者,并将传播者划分为多个组. (MPI_COMM_WORLD)这是因为我认为我也可以通过对实时代码进行实验来学习.

Can anyone help me get my head around the MPI Groups, Inter and Intra communicators. I have already gone through the MPI documentation(http://www.mpi-forum.org/docs/mpi-2.2/mpi22-report.pdf ) and I couldnt make good sense of these concepts. I would especially appreciate any code in the area of Inter communicators and communicator partitioning into groups within one communicator e.g. (MPI_COMM_WORLD) this is because I think I can also learn by experimenting on live code .

推荐答案

您能扩展一下对您毫无意义的内容吗?

Can you expand upon what specifically doesn't make sense to you?

但是,总的来说,我可以这样说:一个MPI组是一组过程. MPI通信器是过程之间进行交谈的一种方式.如果通信在单个组内,则说明您正在使用内部通信器.如果通信是在两个不愉快的小组之间进行的,则说明您正在使用对讲机.

Generally speaking, however, I can say this: An MPI group is a set of processes. An MPI communicator is a way of talking between processes. If the communication is within a single group, then you are using an intracommunicator. If the communication is between two disjoing groups, then you're using an intercommunicator.

尽管您通常将传播者视为跨越过程,但每个传播者实际上对于一个过程都是唯一的.可以将通信器视为描述一组进程的对象(组属性)的句柄.

While you generally think of a communicator as spanning processes, each communicator is actually unique to a process. A communicator can be thought of as a handle to an object (group attribute) that describes a group of processes.

这篇关于谁能帮助我了解MPI Communicator,组分区的工作原理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆