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

卵石、图和组合数学的一小部分:静态可分析程序的紧I/O下界

Pebbles, Graphs, and a Pinch of Combinatorics: Towards Tight I/O Lower Bounds for Statically Analyzable Programs

Grzegorz Kwasniewski, Tal Ben-Nun, Lukas Gianinazzi, Alexandru Calotoiu, Timo Schneider, Alexandros Nikolaos Ziogas, Maciej Besta, Torsten Hoefler

摘要:

确定I/O下限是获得通信高效并行算法的关键步骤,无论是跨存储层次结构还是处理器之间。当前的方法要么单独研究特定的算法,不允许重新计算等编程主题,要么产生排除重要常数的渐进边界。我们提出了一种新的方法来获得精确的I/O下界的一般类的程序,我们称之为简单的重叠访问程序(SOAP)。SOAP分析涵盖了各种各样的算法,从无处不在的计算内核到完整的科学计算应用程序。使用红蓝卵石游戏和组合方法,我们能够绑定SOAP诱导的计算有向无环图(CDAG)的I/O,同时考虑到多个语句,输入/输出重用和最佳平铺。处理我们表示之外的程序(例如,非内射访问函数),我们描述了用SOAP近似它们的方法。为了证明我们的方法,我们分析了38个不同的应用程序,包括Polybench基准套件的内核,深度学习运算符,以及首次在非结构化物理模拟,数值天气预报模板组成和全深度神经网络中的应用。我们推导出几个线性代数内核,如Cholesky分解,提高了现有的报道的范围的两倍紧I/O界。对于模具应用程序,我们提高了现有的界限的一个因素高达14。我们实现我们的方法作为一个开源的工具,它可以直接从提供的C代码中推导出下界。

英文摘要:

Determining I/O lower bounds is a crucial step in obtaining communication-efficient parallel algorithms, both across the memory hierarchy and between processors. Current approaches either study specific algorithms individually, disallow programmatic motifs such as recomputation, or produce asymptotic bounds that exclude important constants. We propose a novel approach for obtaining precise I/O lower bounds on a general class of programs, which we call Simple Overlap Access Programs (SOAP). SOAP analysis covers a wide variety of algorithms, from ubiquitous computational kernels to full scientific computing applications. Using the red-blue pebble game and combinatorial methods, we are able to bound the I/O of the SOAP-induced Computational Directed Acyclic Graph (CDAG), taking into account multiple statements, input/output reuse, and optimal tiling. To deal with programs that are outside of our representation (e.g., non-injective access functions), we describe methods to approximate them with SOAP. To demonstrate our method, we analyze 38 different applications, including kernels from the Polybench benchmark suite, deep learning operators, and -- for the first time -- applications in unstructured physics simulations, numerical weather prediction stencil compositions, and full deep neural networks. We derive tight I/O bounds for several linear algebra kernels, such as Cholesky decomposition, improving the existing reported bounds by a factor of two. For stencil applications, we improve the existing bounds by a factor of up to 14. We implement our method as an open-source tool, which can derive lower bounds directly from provided C code.

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

↑