- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
高性能处理器体系结构TLSharedMemorymultirocessors共享存储多处理器
* * Mapping Binding processes to physical processors. Time to reach processor across network does not depend on which processor (roughly). lots of old literature on “network topology”, no longer so important. Basic issue is how many remote accesses. * * Example s = f(A[1]) + … + f(A[n]) Decomposition computing each f(A[j]) n-fold parallelism, where n may be p computing sum s Assignment thread k sums sk = f(A[k*n/p]) + … + f(A[(k+1)*n/p-1]) thread 1 sums s = s1+ … + sp (for simplicity of this example) thread 1 communicates s to other threads Orchestration starting up threads communicating, synchronizing with thread 1 Mapping processor j runs thread j * * Threads and thread teams in OpenMP A thread is a (lightweight) process - an instance of a program + its data. Each thread can follow its own flow of control through a program. Threads can share data with other threads, but also have private data. Threads communicate with each other via the shared data. A thread team is a set of threads which co-operate on a task. The master thread is responsible for co-ordinating the team. PC PC PC Private data Private data Private data Shared data Thread 1 Thread 2 Thread 3 * * OpenMP Programming Model Thread based Parallelism A shared memory process can consist of multiple threads Compiler Directive Based Explicit Parallelism OpenMP is an explicit (not automatic) programming model, offering the programmer full control over parallelization OpenMP parallelism is specified through the use of compiler directives which are imbedded in the source coded Nested Parallelism support Supports parallel constructs inside other parallel constructs Dynamic Threads Provision for dynamically altering the number of threads which may be used to execute different parallel regions * * OpenMP Execution Model OpenMP uses the fork-join model of parallel execution Fork-Join model All OpenMP programs begin as a single process – the master thread. Which executes sequentially until the first pa
您可能关注的文档
最近下载
- 七年级语文上册古诗文10分钟默写练习(含答案).pdf VIP
- 地役权14个经典案例.docx VIP
- 穿流气流带式干燥机设计计算.pdf VIP
- 小学数学新北师大版二年级上册第六单元第2课时 好玩的华容道(1)教学课件2025秋.pptx VIP
- 微塑料污染溯源技术-洞察及研究.docx VIP
- 巴金《灯》教学教案.doc VIP
- 车站及隧道防水质量控制课件.ppt VIP
- 中国近现代作家排行榜前100名.docx VIP
- 小学数学新北师大版二年级上册第六单元第3课时 好玩的华容道(2) 教学课件2025秋.pptx VIP
- 国际康养酒店经典案例:泰国齐瓦颂(Chiva-Som)度假村.pptx VIP
文档评论(0)