- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
However, the Parallelizing Compilers After 30 years of intensive research only limited success in parallelism detection and program transformations instruction-level parallelism at the basic-block level can be detected parallelism in nested for-loops containing arrays with simple index expressions can be analyzed analysis techniques, such as data dependence analysis, pointer analysis, flow sensitive analysis, abstract interpretation, ... when applied across procedure boundaries often take far too long and tend to be fragile, i.e., can break down after small changes in the program instead of training compilers to recognize parallelism, people have been trained to write programs that parallelize A simple example Loop is a simple example of a code region that can benefit from parallelism Let’s look at one of the possible implementations of parallel for-loop Things to Consider in Creating a Parallelized “for-loop” Step 1 Things to Consider in Creating a Parallelized “for-loop” Step 2 Parallel Programming Complexity Enough parallelism? (Amdahl’s Law) Granularity Locality Load balance Coordination and Synchronization All of these things makes parallel programming even harder than sequential programming Parallel Compared to Sequential Programming Has different costs, different advantages Requires different, unfamiliar algorithms Must use different abstractions More complex to understand a program’s behavior More difficult to control the interactions of the program’s components Knowledge/tools/understanding more primitive References The content expressed in this chapter comes from UC Berkeley open course (/2010bootcampagenda) Carnegie Mellon University’s public course, Parallel Computer Architecture and Programming (CS 418) (/afs/cs/academic/class/15418-s11/public/lectures/) Livermore Computing Center’s training materials, Introduction to Parallel Computing (/tutorials/parallel_comp/) Parallel Programming Principle and Practice,(/courses/parallel/) 修改 * * 科学计算与模拟是推动
原创力文档


文档评论(0)