




已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Reviews on parallel programming并行计算 英文班复习考试范围及题型:(110章)1 基本概念解释;Translation (Chinese)2 问答题。Questions and answer3 算法的画图描述。Graphical description on algorithms4 编程。AlgorithmsReviews on parallel programming并行计算1 基本概念解释;Translation (Chinese)SMPMPPCluster of WorkstationParallelism, pipelining, Network topology, diameter of a network, Bisection width, data decomposition, task dependency graphs granularity concurrency process processor,linear array, mesh,hypercube, reduction, prefix-sum, gather, scatter, thread s, mutual exclusion shared address space,synchronization, the degree of concurrency, Dual of a communication operation, 2 问答题。Questions and answerChapter 1 第1章1)Why we need parallel computing? 1)为什么我们需要并行计算?答:2)Please explain what are the main difference between parallel computing and sequential computing 2)解释并行计算与串行计算在算法设计中的主要不同点在那里?答:Chapter 2 第2章1)What are SIMD, SPMD and MIMD denote? 1)解释SIMD, SPMD 和 MIMD是什么含义。答:2)Please draw a typical architecture of SIMD and a typical architecture of MIMD to explan.2)请绘制一个典型的SIMD的体系结构和MIMD的架构。答:3)What are the two typical communication models of Parallel Platforms? You can give a short introduction on Massage Passing and Shared address space models.3)并行平台的两个典型的通信模式是什么?你可以给一个简短的介绍信息传递和共享地址空间模型。能说出Massage Passing和Shared address space models两种通讯模型。答:4)In the ideal parallel random access machine(PRAM), what are the meaning of EREW, CREW and CRCW?4)在理想并行计算模型中(parallel random access machine(PRAM), EREW, CREW, 和CRCW表示的意思是什么?答:Chapter 3 第3章1)Be able to explain at least 2 kinds of the basic decomposition techniques, i.e., Recursive decomposition, Data decomposition, Exploration decomposition and Speculative decomposition.1)能够解释的基本的把问题分解技术,至少有2种,例如,递归分解,数据分解,探索分解和投机分解。 (1)递归分解, 如快速排序 (2)数据分解,矩阵乘法,矩阵与向量的乘法,按行或格网的数据划分。 (3)探索分解,人工智能中的状态空间的问题求解、如16数码问题。 (4)投机分解, 利用处理器大多数时间处于空闲的特点,把后面可以先计算的任务,提前计算出,在许多情况下会加速程序的运行。如对 case, if 语句的句子同时计算出来。答:2)When the work balance of tasks become bed, which is scheduled based on data decomposition, what methods can improve the work balance of tasks, block-cyclic distribution, Randomized block distributions and graph partitioning.2)当平衡工作的任务成为基于数据分解,有什么方法可以改善平衡工作的任务。 对稀疏矩阵或在同一数据集合上,操作密度不同的计算,如何达到调度平衡的问题, 具体方法是什么: (1)block-cyclic distribution (采用在一个矩阵上循环安排任务计算完成的方法) (2)对矩阵的下标采用随机映射的方法 (3)图划分的方法答:Chapter 4 第4章1)Be familiar with the basic communication operations as well as their implementations on the typical models, hypercube, linear array and mesh (graphical description) 1)熟悉的基本通信业务,以及对他们的典型模式实现,超立方体,线性阵列和网状(图形描述)one to all broadcast; all to one reductionall to all broadcast; all to all reductionscatter, gather, all reduce, prefix sum,all to all personalized communication. Circular shift个人认为以下的1-4更为重要,算法实现没必要记住,但是要知道每个操作具体是怎么做的答:2)be able to use basic communication operation to design parallel algorithms, e.g.matrix-vector multiplication, shortest path trees and minimum spanning tree.2)能使用基本的通信操作设计并行算法,例如:矩阵向量乘法,最短路径树和最小生成树。答:Chapter 5 第5章1)The formulae of speedup, efficiency and cost of a parallel algorithm and be able to give a short exolaination.1)并行算法的加速,效率和成本的计算公式,并能给出一个简短解释。 (1)知道并行算法的分析测度,以及相应的测度计算公式。 (2)并行算法并行加速比S,S = Ts/Tp , Tp 和Ts 表示 并行算法和串行算法的时间复杂性。 (3)效率E = E= S/p= Ts/(Tp*p), (4)费用cost = P * Tp答:2)The proof on Amdahls law: If a problem of size W has a serial component Ws, prove that W/Ws is an upper bound on its speedup, no matter how many processing elements are used.2)Amdahl定理的证明:设W表示某算法A求解问题的全部工作量,W= Ws+Wp, 其中 Ws 表示必须串行计算的工作量;Wp表示可以并行计算的工作量。试证明该算法的并行加速比的上界是W/Ws ,无论有多少个处理单元。答:Chapter 6 第6章1)Be able to describe the program architecture of a MPI program.1)能够来描述程序的MPI程序架构。 #include Main(int argc, char *argv) int npes, myrank; MPI_init(&argc, &argv); MPI_Comm_szie(MPI_COMM_WORLD, &npes); MPI_Comm_rank(MPI_COMM_WORLD, &myrank); 并行程序代码部分 通讯结束部分 MPI_Finilize() 2)fundimental functions for MPI a)MPI_Init establishing a parallel computational environment b)MPI_Finalize closes all parallel tasks c)MPI_Comm_size get the number of processes available d)MPI_Comm_rank get the id of process e)MPI_sendmessage sending functions f)MPI_Recv message receiving functions2)了解MPI的基本函数 1)MPI_INIT建立一个并行计算环境 2)MPI_Finalize关闭所有并行任务 3)MPI_Comm_size获得可用的进程数 4)MPI_Comm_rank得到进程ID 5)MPI_send消息发送功能 6)MPI_Recv消息接收功能3)Blocking and non-block message passing in MPI_Send. a)Return only after the corresponding MPI_Recv have been issued and the message has been sent to the receiver (blocking) completely. b)Initialize a process to copy the message into a buffer of the destination and then return (non-blocking with a buffer) without waiting the finish of the data transformation. Please give the corresponding sentences for the two kinds of massage passing in MPI.3)能说明在MPI_Send中的阻塞的消息传递(blocking Message Passing)和无阻塞的消息传递(Non-blocking Message Passing)的含义和具体如何实现的。 1)只返回相应的MPI_Recv后已经下达,消息被发送到接收器(阻塞)完全。 2)初始化一个流程来复制到缓冲区的消息的目的地,然后返回(无阻塞/非阻塞方式的缓冲区)无需等待完成的数据转换。请给相应的句子的两种消息传入MPI。答:Chapter 7 第7章1)Be able to describe the program architecture of a Pthread program1)说明一般利用Pthread编程的程序基本结构(包含那几个语句)。答:IEEE指定的一个标准的线程API,POSIX API。POSIX也称为Pthread线程的创建、终止 pthread_create pthread_exit等待所有线程运行完毕以便完成结果的合并 pthread_joinl #include pthread.h int pthread_create( pthread_t *thread_handle, /id of the threadconst pthread_attr_t * attribute , void * (*thread_function) (void*), /*the main program content*/ void *arg ); /*the pointer for the calculated result*/ l int pthread_join ( pthread_t thread, void *ptr)l int pthread_exit()2)Be able to introduce the methods for synchronization, e.g. implementing critical section and atomic operations. Be able to write the corresponding sentences2)介绍同步的方法,例如:实施的关键部分和原子操作。能够写出相应的句子。答:3)Be able to write OpenMP programs for matrix multiplication, computation and so on.3)能编写OpenMP程序的矩阵乘法,计算等。答:4)Be able to compare the advantage and shortcoming of Thread and OpenMP programming.4)能够比较Thread和OpenMP编程的优点和缺点。答:Chapter 8 第8章1)Algorithms for matrix transposition1)矩阵转置算法算法:按mesh连接进行块转置(不同处理器间) 进行块内转置(同一处理器内)答:2)Algorithms for matrix multiplications 2)矩阵乘法算法答:并发实现矩阵与向量的乘法。Chapter 9 第9章Be familiar with at least one sorting network as well as a parallel sorting algorithm.熟悉至少一个排序网络,以及一个并行排序算法。答:奇-偶排序的并行算法 双调排序Chapter 10 第10章Algorithms for shortest paths, Minimum Spanning Tree, Connected Components, Maximal Independent Set.最短路径,最小生成树,连接组件,极大独立集的算法。答:3. Graphical description
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中考专练:短文语境提示填空-(含答案)
- 江苏省徐州市2025年中考物理真题附真题答案
- 库房会计面试题库及答案
- 农业产业园项目可行性研究及2025年农业产业升级报告
- 地热能供暖2025年智慧城市能源系统应用现状与趋势报告
- 安全教育培训评估评语课件
- 金融科技企业估值方法在投资策略中的应用研究报告
- 农业产业化龙头企业在农业产业集聚中的发展模式与区域经济带动效应研究报告
- 特色农产品品牌与农产品期货市场互动关系研究报告
- 建筑公司工地施工安全执行方案
- GB/T 14715-2017信息技术设备用不间断电源通用规范
- 起重设备安装安全事故应急预案
- 教研组、备课组新学期教研组长会议课件讲义
- 生物质资源及其开发利用课件
- 物流网络规划与设计课件
- JB∕T 5245.4-2017 台式钻床 第4部分:技术条件
- 鞘膜积液的护理查房
- 《水工监测工》习题集最新测试题含答案
- 部编版三年级上册道德与法治第一单元第1课《学习伴我成长》课件
- 组合式塔吊基础施工专项方案(117页)
- 1、《国际贸易实务》课程标准解析
评论
0/150
提交评论