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.
翻译:确定 I/O 下界是获得通信效率高的平行算法的关键步骤, 包括记忆层和处理器之间的平行算法。 目前的方法要么是单独研究特定的算法, 不允许重新计算等程序图状, 要么是产生排除重要常数的无线线线条。 我们提出一种新的方法, 以便在一般程序类别中获取精确的 I/ O 下界线, 我们称之为简单重叠存取程序。 SOAP 分析涵盖范围广泛的各种算法, 从无处不在的计算内核内核应用到完整的科学计算应用。 为了展示我们的方法, 我们首先分析了38种不同的应用程序, 包括SOAP 启动的计算图式图案图案, 排除了重要的常数个常数。 我们建议采用的方法, 改进了现有的内核内核内核内核的内核结构, 直接地分析了内核的内核结构, 改进了我们现有的内核内核的内核结构的内核结构,, 直接的内核的内核的内核分析器, 。