arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.09130cs.DCcs.LO
收藏

使用Promela模型检查自动调优高性能程序

Auto-Tuning High-Performance Programs Using Model Checking in Promela

Natalia Garanina, Sergey Staroletov, Sergei Gorlatch

AI总结:

本文提出利用模型检查中的反例加速高性能程序自动调优,以OpenCL程序为例,结合Promela和SPIN工具实现并验证了该方法。

摘要:

本文结合了传统上相互独立的研究方法:1)用于程序形式化验证的模型检查,以及2)常用于高性能计算的自动调优。自动调优框架通过为特定高性能架构和输入数据大小寻找性能关键参数(即所谓的调优参数)的最优值来优化并行程序。由于影响程序性能的参数众多,即使对专家而言,找到最优参数配置也是一项难以管理的任务。自动调优自动化了这一过程,但往往耗时。我们应用模型检查来加速自动调优,利用在验证程序最优性属性过程中构造的反例。我们详细描述了针对使用OpenCL(现代高性能架构编程的标准)编写的程序,采用模型表示语言Promela和流行的SPIN验证工具实现我们方法的过程,并报告了一个应用用例的实验结果。

英文摘要:

The paper combines research approaches that traditionally have been disjoint: 1) model checking as used in formal verification of programs, and 2) auto-tuning as often used in high-performance computing. Auto-tuning frameworks optimize parallel programs by finding the optimal values of the performance-critical parameters -- so-called tuning parameters -- for a particular high-performance architecture and input data size. As there are many parameters influencing program's performance, finding the optimal parameter configuration is a hardly manageable task even for experts. Auto-tuning automates this process, but it is often time-consuming. We apply model checking for accelerating auto-tuning by using a counterexample constructed during the verification of the optimality property of the program. We describe in detail an implementation of our approach for programs written in OpenCL -- the standard for programming modern high-performance architectures -- using the model representation language Promela and the popular SPIN verification tool, and we report experimental results for an application use case.

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

↑