arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.10196cs.PL
收藏

循环局部性的完全符号分析:利用虚拟重用推断实际性能

Fully Symbolic Analysis of Loop Locality: Using Imaginary Reuse to Infer Real Performance

University of Rochester(罗切斯特大学)

Yifan Zhu, Yekai Pan, Chen Ding, Yanghui Wu

AI总结:

本文提出了一种基于符号计算的循环局部性分析方法,通过推导多项式模型实现对缓存性能的精确预测,实验验证其在科学计算中的高准确率。

摘要:

本文提出了一种新的局部性理论及其编译器支持。该理论完全符号化,并将局部性推导为多项式,编译器分析支持仿射循环嵌套。他们推导出缓存性能的二次和反比表达式,并且比经验性缩放规则更通用和精确。在包含41个科学内核和张量操作的基准套件上评估,编译器平均需要41秒来推导局部性多项式。在推导后,预测任何给定输入大小和缓存配置的缓存缺失次数只需不到毫秒。在所有测试中——包括和不包括循环融合——数据移动预测的准确率为99.6%,与模拟的集关联L1数据缓存相比。

英文摘要:

This paper presents a new theory of locality and its compiler support. The theory is fully symbolic and derives locality as polynomials, and the compiler analysis supports affine loop nests. They derive cache-performance scaling in quadratic and reciprocal expressions and are more general and precise than empirical scaling rules. Evaluated on a benchmark suite of 41 scientific kernels and tensor operations, the compiler requires an average of 41 seconds to derive the locality polynomials. After derivation, predicting the cache miss count for any given input size and cache configuration takes less than a millisecond. Across all tests--with and without loop fusion--the accuracy in the data movement prediction is 99.6\%, compared to simulated set-associative L1 data cache.

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

↑