arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.04212cs.PFcs.AR
收藏

机器学习实现科学码的可扩展性能预测

Machine Learning Enabled Scalable Performance Prediction of Scientific Codes

Gopinath Chennupati, Nandakishore Santhi, Phill Romero, Stephan Eidenbenz

摘要:

本文介绍了性能预测工具包(PPT)中的流水线分析内存模型(AMMP)。PPT-AMMP以高级源代码和硬件架构参数作为输入,预测该代码在目标硬件平台上的运行时间,该目标硬件平台在输入参数中定义。PPT-AMMP将代码转换为(架构无关的)中间表示,然后(i)分析代码的基本块结构,(ii)处理架构无关的虚拟内存访问模式,用于为每个基本块构建内存重用距离分布模型,(iii)运行详细的基本块级仿真以确定硬件流水线使用情况。PPT-AMMP使用机器学习和回归技术来建立基于输入代码的小实例的预测模型,然后集成到运行在Simian PDES引擎上的PPT的高阶离散事件仿真模型中。我们在四个标准计算物理基准上验证了PPT-AMMP,最后给出了一个硬件参数敏感性分析的用例,以确定不同代码输入上的瓶颈硬件资源。我们进一步扩展PPT-AMMP预测科学应用(辐射输运),SNAP的性能。我们分析了多变量回归模型的应用,准确地预测重用配置文件和基本块计数。与实际时间相比,SNAP的预测运行时间是准确的。

英文摘要:

We present the Analytical Memory Model with Pipelines (AMMP) of the Performance Prediction Toolkit (PPT). PPT-AMMP takes high-level source code and hardware architecture parameters as input, predicts runtime of that code on the target hardware platform, which is defined in the input parameters. PPT-AMMP transforms the code to an (architecture-independent) intermediate representation, then (i) analyzes the basic block structure of the code, (ii) processes architecture-independent virtual memory access patterns that it uses to build memory reuse distance distribution models for each basic block, (iii) runs detailed basic-block level simulations to determine hardware pipeline usage. PPT-AMMP uses machine learning and regression techniques to build the prediction models based on small instances of the input code, then integrates into a higher-order discrete-event simulation model of PPT running on Simian PDES engine. We validate PPT-AMMP on four standard computational physics benchmarks, finally present a use case of hardware parameter sensitivity analysis to identify bottleneck hardware resources on different code inputs. We further extend PPT-AMMP to predict the performance of scientific application (radiation transport), SNAP. We analyze the application of multi-variate regression models that accurately predict the reuse profiles and the basic block counts. The predicted runtimes of SNAP when compared to that of actual times are accurate.

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

↑