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

并行逻辑程序静态代价分析的通用框架

Towards a General Framework for Static Cost Analysis of Parallel Logic Programs

Maximiliano Klemen, Pedro Lopez-Garcia, John P. Gallagher, Jose F. Morales, Manuel V. Hermenegildo

摘要:

资源使用的估计和控制现在是越来越多的计算系统中的重要挑战。特别地,在诸如物联网、云计算、健康、运输和机器人的各种各样的应用中出现对定时和能量的要求。与此同时,并行计算,特别是(异构)多核平台,已经成为计算机体系结构中的主导范例。预测这些平台上的资源使用情况是一项艰巨的挑战。静态资源分析的大部分工作都集中在顺序程序上,而在并行程序的分析上,或者更具体地说,在并行逻辑程序上,取得的进展相对较少。我们提出了一种新的,通用的,灵活的框架,建立成本方程/关系,可以实例化的并行逻辑程序的资源使用分析的广泛的资源,平台和执行模型。分析估计上下限的资源使用的并行程序(不执行它)作为输入数据大小的函数。此外,它还推断出其他有意义的信息,以更好地利用和评估系统的潜在和实际并行性。我们开发了一种方法,用于解决成本关系,涉及最大函数,在并行程序的分析中出现。最后,我们实例化我们的一般框架分析的逻辑程序与独立的和-独立主义,报告内的CiaoPP系统的实现,并提供一些实验结果。据我们所知,这是并行逻辑程序成本分析的第一种方法。

英文摘要:

The estimation and control of resource usage is now an important challenge in an increasing number of computing systems. In particular, requirements on timing and energy arise in a wide variety of applications such as internet of things, cloud computing, health, transportation, and robots. At the same time, parallel computing, with (heterogeneous) multi-core platforms in particular, has become the dominant paradigm in computer architecture. Predicting resource usage on such platforms poses a difficult challenge. Most work on static resource analysis has focused on sequential programs, and relatively little progress has been made on the analysis of parallel programs, or more specifically on parallel logic programs. We propose a novel, general, and flexible framework for setting up cost equations/relations which can be instantiated for performing resource usage analysis of parallel logic programs for a wide range of resources, platforms and execution models. The analysis estimates both lower and upper bounds on the resource usage of a parallel program (without executing it) as functions on input data sizes. In addition, it also infers other meaningful information to better exploit and assess the potential and actual parallelism of a system. We develop a method for solving cost relations involving the max function that arise in the analysis of parallel programs. Finally, we instantiate our general framework for the analysis of logic programs with Independent And-Parallelism, report on an implementation within the CiaoPP system, and provide some experimental results. To our knowledge, this is the first approach to the cost analysis of parallel logic programs.

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

↑