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

基于HPCToolkit的GPU加速应用程序测试与分析

Measurement and Analysis of GPU-accelerated Applications with HPCToolkit

Keren Zhou, Laksono Adhianto, Jonathon Anderson, Aaron Cherian, Dejan Grubisic, Mark Krentel, Yumeng Liu, Xiaozhu Meng, John Mellor-Crummey

摘要:

为了应对美国能源部即将推出的百万兆级超级计算机性能分析的挑战,莱斯大学一直在扩展其HPCToolkit性能工具,以支持GPU加速应用程序的测量和分析。为了帮助开发人员从整体上了解加速应用程序的性能,HPCToolkit的测量和分析工具将指标归因于跨CPU和GPU的调用上下文。为了有效地测量GPU加速的应用程序,HPCToolkit采用了一种新颖的无等待数据结构来协调GPU性能的监控和归因。为了帮助开发人员了解从高级编程模型生成的复杂GPU代码的性能,HPCToolkit为GPU计算构建了复杂的调用路径配置文件近似值。为了支持细粒度的分析和调优,HPCToolkit使用PC采样和检测来测量GPU性能指标,并将其归因于源代码行、循环和内联代码。为了补充细粒度测量,HPCToolkit可以使用硬件性能计数器测量GPU内核执行。为了提供一个执行如何随时间演变的视图,HPCToolkit可以收集、分析和可视化节点内和节点间的调用路径跟踪。最后,在NVIDIA GPU上,HPCToolkit可以根据使用GPU PC样本的测量结果导出并归属一系列有用的性能指标。我们说明了HPCToolkit的新功能,分析GPU加速的应用程序开发的Exascale计算项目的一部分,与几个代码。

英文摘要:

To address the challenge of performance analysis on the US DOE's forthcoming exascale supercomputers, Rice University has been extending its HPCToolkit performance tools to support measurement and analysis of GPU-accelerated applications. To help developers understand the performance of accelerated applications as a whole, HPCToolkit's measurement and analysis tools attribute metrics to calling contexts that span both CPUs and GPUs. To measure GPU-accelerated applications efficiently, HPCToolkit employs a novel wait-free data structure to coordinate monitoring and attribution of GPU performance. To help developers understand the performance of complex GPU code generated from high-level programming models, HPCToolkit constructs sophisticated approximations of call path profiles for GPU computations. To support fine-grained analysis and tuning, HPCToolkit uses PC sampling and instrumentation to measure and attribute GPU performance metrics to source lines, loops, and inlined code. To supplement fine-grained measurements, HPCToolkit can measure GPU kernel executions using hardware performance counters. To provide a view of how an execution evolves over time, HPCToolkit can collect, analyze, and visualize call path traces within and across nodes. Finally, on NVIDIA GPUs, HPCToolkit can derive and attribute a collection of useful performance metrics based on measurements using GPU PC samples. We illustrate HPCToolkit's new capabilities for analyzing GPU-accelerated applications with several codes developed as part of the Exascale Computing Project.

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

↑