香港浸会大学:点对点通信(PPT讲稿)Point-to-Point Communication

Point - to-Point Communication Reference:http://foxtrot.ncsa.uiuc.edu.8900/publicmmpl
Reference: http://foxtrot.ncsa.uiuc.edu:8900/public/MPI/ Point-to-Point Communication

Introduction Point-to-point communication is the fundamental communication facility provided by the mPl library Point-to-point communication is conceptually simple: one process sends a message and another process receives it MP/ Send and MP/ Recv work together to complete a transter of data from one process to another
Introduction • Point-to-point communication is the fundamental communication facility provided by the MPI library. • Point-to-point communication is conceptually simple: one process sends a message and another process receives it. • MPI_Send and MPI_Recv work together to complete a transfer of data from one process to another

o Point-to-point communication However, it is less simple in practice. For example, a process may have many messages waiting to be received. In that case a crucial issue is how MP and the receiving process determine what message to receive Another issue is whether send and receive routines initiate communication operations and return immediately, or wait for the initiated communication operation to complete before returning The underlying communication operations are the same in both cases, but the programming interface is very different
Point-to-point communication • However, it is less simple in practice. For example, a process may have many messages waiting to be received. In that case, a crucial issue is how MPI and the receiving process determine what message to receive. • Another issue is whether send and receive routines initiate communication operations and return immediately, or wait for the initiated communication operation to complete before returning. The underlying communication operations are the same in both cases, but the programming interface is very different

Topics Fundamentals of point-to-point communication Blocking send and receive Nonblocking send and receive Send modes
Topics • Fundamentals of point-to-point communication • Blocking send and receive • Nonblocking send and receive • Send modes

Fundamentals Reference:http://foxtrot.ncsa.uiuc.edu.8900/publicmmpl
Reference: http://foxtrot.ncsa.uiuc.edu:8900/public/MPI/ Fundamentals

Fundamentals The following issues are fundamental to point-to point communication in MPl. These apply to all versions of send and receive both blocking and nonblocking, and to all send modes Source and destination Messages Sending and Receiving Messages
Fundamentals • The following issues are fundamental to point-topoint communication in MPI. These apply to all versions of send and receive, both blocking and nonblocking, and to all send modes. – Source and Destination – Messages – Sending and Receiving Messages

Source and Destination The point-to-point communication discussed here are two-sided and require active participation from the processes on both sides. One process(the source) sends and another process( the destination) receives In general, the source and destination processes operate asynchronously. Even the sending and receiving of a single message is typically not synchronized. The source process may complete sending a message long before the destination process gets around to receiving it, and the destination process may initiate receiving a message that has not yet been sent
Source and Destination • The point-to-point communication discussed here are two-sided and require active participation from the processes on both sides. One process (the source) sends, and another process (the destination) receives. • In general, the source and destination processes operate asynchronously. – Even the sending and receiving of a single message is typically not synchronized. The source process may complete sending a message long before the destination process gets around to receiving it, and the destination process may initiate receiving a message that has not yet been sent

Source and Destination Because sending and receiving are typically not synchronized, processes often have one or more messages that have been sent but not yet received These sent, but not yet received messages are called pending messages It is an important feature of MPI that pending messages are not maintained in a simple FIFo queue. Instead, each pending message has several attributes and the destination process( the receiving process)can use the attributes to determine which message to receive
Source and Destination • Because sending and receiving are typically not synchronized, processes often have one or more messages that have been sent but not yet received. • These sent, but not yet received messages are called pending messages. • It is an important feature of MPI that pending messages are not maintained in a simple FIFO queue. Instead, each pending message has several attributes and the destination process (the receiving process) can use the attributes to determine which message to receive

Messages Messages consist of 2 parts: the envelope and the message bod MPI Send (sendbuf, cnt, datatype, dest, tag, comm) message body envelope MPI Recv(recvbuf, cnt, datatype, source, tag, comm, status) MPI Message Letter Send/receive buffer letter content Count/size etter weight Source(receive) Return address Destination(send) Destination address Communicator Country
Messages • Messages consist of 2 parts: the envelope and the message body. MPI_Send(sendbuf,cnt,datatype,dest,tag,comm); MPI_Recv(recvbuf,cnt,datatype,source,tag,comm,status); MPI Message Letter Send/receive buffer letter content Count/size Letter weight Source (receive) Return address Destination (send) Destination address Communicator Country message body envelope

)Message body The message body has 3 parts Buffer It is the space in the computer's memory where the MPl message data are to be sent from or stored to Dataty pe The type of the message data to be transmitted(e.g. floating point). The datatype should be the same for the send and receive call count The number of items of data in the message. The count specified by the receive call should be equal to or greater than the count specified by the send
Message body • The message body has 3 parts: – Buffer It is the space in the computer's memory where the MPI message data are to be sent from or stored to – Datatype The type of the message data to be transmitted(e.g.floating point). The datatype should be the same for the send and receive call. – count The number of items of data in the message. The count specified by the receive call should be equal to or greater than the count specified by the send
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 西安交通大学:《电路》课程PPT教学课件(第五版)第7章 一阶电路和二阶电路的时域分析.ppt
- 《传感器原理与应用》课程教学资源(PPT课件讲稿)第八章 光电式传感器.ppt
- 《模拟电子技术》课程教学资源(PPT课件讲稿)第一章 半导体材料及二极管 1.3 晶体二极管及其应用.ppt
- 《传感器原理与应用》课程电子教案(PPT教学课件)第5章 电容式传感器.ppt
- 上海海事大学:《信号与系统》课程教学资源(PPT课件讲稿)第四章 连续时间与信号的s域分析(4.4)LTI系统和线性电路的s域分析.ppt
- 《模拟电路》课程教学资源(PPT课件讲稿)第六章 模拟集成单元电路.ppt
- 西安电子科技大学:《低频电子线路》课程教学资源(PPT课件讲稿)第1章 半导体器件(主讲人:刘雪芳、陈梅).ppt
- 《信号与系统》课程教学资源(PPT课件)Chapter 2 线性时不变系统 LTI Systems(Linear Time-invariant).ppt
- 《模拟电子学》课程PPT教学课件(基础实验)晶体管放大器的仿真实验步骤.ppt
- 上海海事大学:《电子与通信专业英语》课程教学资源(PPT课件讲稿)Unit 3 Circuit Analysis Using the Ideal Operational Amplifier.ppt
- 《信号与系统》课程教学资源(PPT课件讲稿)第四章 连续时间傅立叶变换 The continuous time Fourier ....ppt
- 电子元器件的识别与检测(PPT专题讲稿,共六个任务).ppt
- 《数字电路与逻辑设计》课程教学资源(PPT课件讲稿)第三章 集成门电路与触发器.ppt
- 《数字电子技术基础》课程教学资源(PPT课件讲稿)第2章 逻辑代数基础.ppt
- 《通信原理》课程教学资源(PPT课件讲稿)第九章 现代数字调制解调技术.ppt
- 贵州电子信息职业技术学院:《电工与电子技术基础》课程教学资源(PPT课件)第10章 数字电路的基本知识.ppt
- 《模拟电子技术及应用》课程教学资源(PPT课件讲稿)第1章 基本半导体分立器件.ppt
- 《电子技术实验》课程PPT教学课件(模拟电子部分,共六个实验).ppt
- 《模拟电子技术》课程教学资源(PPT课件讲稿)第三章 场效应管放大电路.ppt
- 《移动通信技术》课程教学资源(PPT课件讲稿)第七章 第三代移动通信系统.ppt
- 《单片机原理与接口技术 Single Chip Microcomputer》课程教学资源(PPT课件讲稿)第12章 其它应用接口设计.ppt
- 《单片机应用系统设计技术》课程教学资源(PPT课件讲稿)第六章 80C51单片机内部资源及应用.ppt
- 《单片机原理及应用》课程教学资源(PPT课件讲稿)第4章 MCS-51的中断系统.ppt
- 数字程控交换与现代通信网(PPT课件讲稿)现代通信网概论.ppt
- 《数字逻辑电路》课程教学资源(PPT课件讲稿)第四章 组合逻辑电路.ppt
- 《电子技术》课程电子教案(PPT课件讲稿)第16章 集成运算放大器.ppt
- 《移动通信技术》课程教学资源(PPT课件讲稿)第六章 CDMA移动通信系统.ppt
- 《数字信号处理简明教程》教学资源(PPT课件讲稿)第8章 IIR数字滤波器设计.ppt
- 《模拟电子技术》课程教学资源(PPT课件)第三章 几种常用的放大电路.ppt
- ANALYSIS AND SYNTHESIS OF OPTICAL BURST SWITCHED NETWORKS.pptx
- 《电路》课程电子教案(PPT课件讲稿)第17章 非线性电路.ppt
- 《模拟电子技术》课程电子教案(PPT课件讲稿)第四章 负反馈放大电路.ppt
- 《通信原理》课程电子教案(PPT课件讲稿)第六章 数字调制系统.ppt
- 《单片机原理及应用》课程教学资源(PPT课件讲稿)第2章 MCS-51单片机结构及原理.ppt
- 《医学电子学基础》课程教学资源(PPT课件讲稿)第十一章 医用仪器干扰的抑制和安全用电.ppt
- 《高频电子线路》课程教学资源(PPT课件讲稿)项目五 调幅与检波.ppt
- 高等教育出版社:“十一五”国家级规划教材《单片机基础及应用》课程教学资源(PPT课件讲稿,高职高专)第2章 单片机的指令系统.ppt
- 西安电子科技大学:《通信原理》课程教学资源(讲义)第五十一讲 第9章 现代数字调制解调技术.pdf
- 《数字信号处理》课程教学资源(PPT课件讲稿)第四章 快速傅里叶变换.ppt
- 《传感器与检测技术》课程PPT教学课件(讲稿)第4章 电容式传感器.ppt