arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1205.2367cs.PLcs.DC
收藏

动态循环优化

Dynamic Loop Parallelisation

Adrian Jackson, Orestis Agathokleous

摘要:

嵌套循环的区域是高性能计算(HPC)代码的常见特征。在共享内存编程模型中,如OpenMP,这些结构是最常见的并行性来源。并行化这些结构需要程序员对如何应用并行性做出静态决定。然而,取决于问题的参数和代码的性质,关于哪个循环并行化的静态决策可能不是最优的,特别是因为它们不允许利用执行的任何运行时特性,包括对要并行化的循环的迭代的改变。我们已经开发了一个系统,允许代码在运行时动态选择,什么并行应用于嵌套循环。我们的方法提供动态决策的循环并行显着优于标准的方法来实现这一点,通过OpenMP(使用if子句)。

英文摘要:

Regions of nested loops are a common feature of High Performance Computing (HPC) codes. In shared memory programming models, such as OpenMP, these structure are the most common source of parallelism. Parallelising these structures requires the programmers to make a static decision on how parallelism should be applied. However, depending on the parameters of the problem and the nature of the code, static decisions on which loop to parallelise may not be optimial, especially as they do not enable the exploitation of any runtime characteristics of the execution including changes to the iterations of the loops to be parallelised. We have developed a system that allows a code to make a dynamic choice, at runtime, of what parallelism is applied to nested loops. Our method for providing dynamic decisions on which loop to parallelise significantly outperforms the standard methods for acheiving this through OpenMP (using if clauses).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑