通过性能和精度建模加速科学代码
Accelerating scientific codes by performance and accuracy modeling
摘要:
科学软件通常由多个影响精度和性能的参数驱动。由于找到这些参数的最佳配置是一项非常复杂的任务,因此软件的使用非常普遍。在一个典型的场景中,精度要求是强加的,并通过次优性能来实现。在本文中,我们提出了一种自动选择参数的仿真代码的方法,和相应的原型工具。为了符合我们的方法,目标代码必须暴露影响精度和性能的参数,并且必须有用于底层方法的误差界限和计算复杂性的公式。作为一个案例研究,我们认为粒子-粒子粒子-网格方法(PPPM)从LAMMPS套件的分子动力学,并使用我们的工具来识别配置的输入参数,实现给定的精度在最短的执行时间。与专家用户建议的配置相比,我们的工具所选择的参数可以缩短10%至60%的求解时间。换句话说,对于授予固定数量的核心小时并且要运行固定数量的时间步的模拟的典型场景,使用我们的工具可以允许多达两倍的模拟。虽然我们开发我们的想法使用LAMMPS作为计算框架,并使用PPPM方法的分散作为案例研究,该方法是通用的,有效的一系列软件工具和方法。
英文摘要:
Scientific software is often driven by multiple parameters that affect both accuracy and performance. Since finding the optimal configuration of these parameters is a highly complex task, it extremely common that the software is used suboptimally. In a typical scenario, accuracy requirements are imposed, and attained through suboptimal performance. In this paper, we present a methodology for the automatic selection of parameters for simulation codes, and a corresponding prototype tool. To be amenable to our methodology, the target code must expose the parameters affecting accuracy and performance, and there must be formulas available for error bounds and computational complexity of the underlying methods. As a case study, we consider the particle-particle particle-mesh method (PPPM) from the LAMMPS suite for molecular dynamics, and use our tool to identify configurations of the input parameters that achieve a given accuracy in the shortest execution time. When compared with the configurations suggested by expert users, the parameters selected by our tool yield reductions in the time-to-solution ranging between 10% and 60%. In other words, for the typical scenario where a fixed number of core-hours are granted and simulations of a fixed number of timesteps are to be run, usage of our tool may allow up to twice as many simulations. While we develop our ideas using LAMMPS as computational framework and use the PPPM method for dispersion as case study, the methodology is general and valid for a range of software tools and methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。