Simplifying dependent reductions in the polyhedral model
Simplifying dependent reductions in the polyhedral model
复制标题
简化多面体模型中的相关约简
DOI:
10.1145/3434301
复制
发表时间:
2021
影响因子:
--
通讯作者:
Carbin, Michael
中科院分区:
文献类型:
--
作者:
Yang, Cambridge;Atkinson, Eric;Carbin, Michael
A Reduction – an accumulation over a set of values, using an associative and commutative operator – is a common computation in many numerical computations, including scientific computations, machine learning, computer vision, and financial analytics. Contemporary polyhedral-based compilation techniques make it possible to optimize reductions, such as prefix sums, in which each component of the reduction’s output potentially shares computation with another component in the reduction. Therefore an optimizing compiler can identify the computation shared between multiple components and generate code that computes the shared computation only once.These techniques, however, do not support reductions that – when phrased in the language of the polyhedral model – span multiple dependent statements. In such cases, existing approaches can generate incorrect code that violates the data dependences of the original, unoptimized program.In this work, we identify and formalize the optimization of dependent reductions as an integer bilinear program. We present a heuristic optimization algorithm that uses an affine sequential schedule of the program to determine how to simplfy reductions yet still preserve the program’s dependences.We demonstrate that the algorithm provides optimal complexity for a set of benchmark programs from the literature on probabilistic inference algorithms, whose performance critically relies on simplifying these reductions. The complexities for 10 of the 11 programs improve siginifcantly by factors at least of the sizes of the input data, which are in the range of 104to 106for typical real application inputs. We also confirm the significance of the improvement by showing speedups in wall-clock time that range from 1.1x to over 106x.
登录
查看更多内容
DOI:
--
发表时间:
1995
期刊:
--
影响因子:
--
作者:
通讯作者:
--
DOI:
--
发表时间:
2012
期刊:
影响因子:
--
作者:
Sven Verdoolaege;Hristo Nikolov;T. Stefanov
通讯作者:
T. Stefanov
DOI:
--
发表时间:
2014
期刊:
International Conference on Artificial Intelligence and Statistics
影响因子:
--
作者:
Lingfeng Yang;P. Hanrahan;Noah D. Goodman
通讯作者:
Noah D. Goodman
DOI:
10.1145/181181.181319
发表时间:
1994
期刊:
ACM Trans. Program. Lang. Syst.
影响因子:
--
作者:
Xavier Redon;P. Feautrier
通讯作者:
P. Feautrier
DOI:
10.1073/pnas.0307752101
发表时间:
2004-04-06
影响因子:
11.1
作者:
Griffiths, TL;Steyvers, M
通讯作者:
Steyvers, M