CSE 160 ndash; Lecture 16.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
CSE160amp;ndash;Lecture16.ppt

CSE 160 – Lecture 16 MPI Concepts, Topology and Synchronization So Far … We have concentrated on generic message passing algorithms We have used PVM to implement codes (simpler on workstations) MPI is a defacto standard for message passing and introduces some important concepts Message Addressing Identify an endpoint Use a tag to distinguish a particular message pvm_send(dest, tag) MPI_SEND(COMM, dest, tag, buf, len, type) Receiving recv(src, tag); recv(*,tag); recv (src, *); recv(*,*); What if you want to build a library that uses message passing? Is (src, tag) safe in all instances? Level O Issues Basic Pt-2-Pt Message Passing is straightforward, but how does one … Make it go fast Eliminate extra memory copies Take advantage of specialized hardware Move complex data structures (packing) Receive from one-of-many (wildcarding) Synchronize a group of tasks Recover from errors Start tasks Build safe libraries Monitor tasks … MPI-1 addresses many of the level 0 issues (but not all) A long history of research efforts in message passing P4 Chameleon Parmacs TCGMSG CHIMP NX (Intel i860, Paragon) PVM … And these begot MPI So What is MPI It is a standard message passing API Specifies many variants of send/recv 9 send interface calls Eg., synchronous send, asynchronous send, ready send, asynchronous ready send Plus other defined APIs Process topologies Group operations Derived Data types Profiling API (standard way to instrument MPI code) Implemented and optimized by machine vendors Should you use it? Absolutely! So What’s Missing in MPI-1? Process control How do you start 100 tasks? How do you kill/signal/monitor remote tasks I/O Addressed in MPI-2 Fault-tolerance One MPI process dies, the rest eventually hang Interoperability No standard set for running a single parallel job across architectures (eg. Cannot split computation between x86 Linux and Alpha) Communication Envelope (src, tag) is enough to distinguish messages however, there is a problem: How does one writ

文档评论(0)

gshshxx + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档