Message Passing Interface.ppt


文档分类:IT计算机 | 页数:约50页 举报非法文档有奖
1/50
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/50
文档列表 文档介绍
municationtakesplaceviatheexplicitexchangeofdataormessages(realizedviasystemcallslikesend(...)orreceive(...)andothers),:targetID,messageinformation(type,length,...)body:thedatatobeprovidedNeedforabuffermechanism:whattodoifthereceiverisnot(yet)readytoreceive?TheUser’municationSystem(MPI)ProcessorProcessProcessProcessProcessorProcessProcessProcessProcessorProcessProcessorProcessDataexchangeMessageBuffersTypically(butnotnecessarily)connectedpartsofmemoryhomogeneousarchitectures(allprocessorsofthesametype):bufferasasequenceofbytes,withoutanytypeinformationheterogeneousarchitectures(differenttypesofprocessors):typeinformationnecessaryforformatconversionbymessagepassinglibraryDefinitionandallocationofmessagebuffers:sendbuffer:generallydonebyapplicationprogramreceivebuffer:eitherautomaticallybymessagepassinglibraryormanuallybyapplicationprogram(eventuallywithcheckwhetherbufferlengthissufficient)Point-to-municationApoint-to-–requiredinformation:receiver(whoshallgetthemessage?)sendbuffer(whereisthedataprovided?)typeofmessage(whatkindofinformationissent?)communicationcontext(contextwithinwhichthemessagemaybesentandreceived)Receive–requiredinformation:sender(wildcardsarepossible,)receivebuffer(ingmessagetobeput?)municationcontextPoint-to-municationContextConsiderascenario:threeprocesses,andallofthemcallasubroutinefromalibraryinter-parecorrectorder(nextslide)municationContextSubroutineSend(Proc0)Recv(Proc2)Process0Process1Process2SubroutineRecv(Proc1)Send(Proc2)SubroutineRecv(Proc0)Send(Proc1)Recv(any)Send(Proc0)municationContextConsiderascenario:threeprocesses,andallofthemcallasubroutinefromalibraryinter-parecorrectorder(previousslide)anderrorcase(nextslide)

Message Passing Interface 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数50
  • 收藏数0 收藏
  • 顶次数0
  • 上传人陈潇睡不醒
  • 文件大小870 KB
  • 时间2019-11-22