对于使用ASIO与MPI的分布式应用程序? [英] For distributed applications, which to use, ASIO vs. MPI?

查看:79
本文介绍了对于使用ASIO与MPI的分布式应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对此我有些困惑.如果您要构建一个分布式应用程序,在某些情况下该应用程序可能会执行并行操作(尽管不一定是数学上的),那么您应该使用ASIO还是MPI之类的东西?我认为MPI比ASIO更高,但是尚不清楚堆栈将从何处开始.

I am a bit confused about this. If you're building a distributed application, which in some cases may perform parallel operations (although not necessarily mathematical), should you use ASIO or something like MPI? I take it MPI is a higher level than ASIO, but it's not clear where in the stack one would begin.

推荐答案

据我所知,当新的分布式节点希望加入已经启动的组时,MPI目前无法处理这种情况.如果其中一个节点脱机,也可能会出现问题.

As far as I know MPI is currently incapable of handling the situation, when the new distributed nodes want to join the already started group. The problems also may occur if one of the nodes goes offline.

MPI不会显示下面的任何与网络相关的机制.因此,如果您需要较低级别的东西,那么您就麻烦了.另一方面,如果您不满足这样的需求,那么使用MPI可以节省很多时间.

MPI does not reveal any network related machinery that is underneath. Thus if you would ever need something on the lower level -- you're in trouble. If you on the other hand do not aticipate such a need, then you'll save yourself a lot of time using MPI.

这篇关于对于使用ASIO与MPI的分布式应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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