高性能处理器体系结构TLSharedMemorymultirocessors共享存储多处理器.ppt

高性能处理器体系结构TLSharedMemorymultirocessors共享存储多处理器.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 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

文档评论(0)

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

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

1亿VIP精品文档

相关文档