On Optimizing a Class of Multi-Dimensional Loops with Reductions for Parallel Execution
On Optimizing a Class of Multi-Dimensional Loops with Reductions for Parallel Execution
复制标题
关于优化一类并行执行约简多维循环
DOI:
10.1142/s0129626497000176
复制
发表时间:
1997
期刊:
影响因子:
--
通讯作者:
R. Wenger
中科院分区:
文献类型:
--
作者:
Chi;P. Sadayappan;R. Wenger
This paper addresses the compile-time optimization of a form of nested-loop computation that is motivated by a computational physics application. The computations involve multi-dimensional surface and volume integrals where the integrand is a product of a number of array terms. Besides the issue of optimal distribution of the arrays among the processors, there is also scope for reordering of the operations using the commutativity and associativity properties of addition and multiplication, and the application of the distributive law to significantly reduce the number of operations executed. A formalization of the operation minimization problem and proof of its NP-completeness is provided. A pruning search strategy for determination of an optimal form is developed. An analysis of the communication requirements and a polynomial-time algorithm for determination of optimal distribution of the arrays are also provided.