基于时间的深度学习性能分析Roofline
Time-Based Roofline for Deep Learning Performance Analysis
摘要:
深度学习应用通常是计算密集型的,并且需要很长的运行时间来进行训练和推理。这已经解决了从硬件和软件方面的研究人员,在本文中,我们提出了一个基于屋顶的性能分析方法,以促进这些应用程序的优化。这种方法是传统高性能计算应用中广泛使用的Roofline模型的扩展,它在公式中包含了计算/带宽复杂度和运行时间,以提供对特定于深度学习的特性的见解。我们采用两组代表性内核,2D卷积和长短期记忆,来验证和演示这种新方法的使用,并研究算术强度,缓存位置,自动调整,内核启动开销和Tensor Core使用如何影响性能。与常见的ad-hoc方法相比,这项研究有助于形成一种更系统的方法来分析代码性能,并为深度学习应用程序识别优化机会。
英文摘要:
Deep learning applications are usually very compute-intensive and require a long run time for training and inference. This has been tackled by researchers from both hardware and software sides, and in this paper, we propose a Roofline-based approach to performance analysis to facilitate the optimization of these applications. This approach is an extension of the Roofline model widely used in traditional high-performance computing applications, and it incorporates both compute/bandwidth complexity and run time in its formulae to provide insights into deep learning-specific characteristics. We take two sets of representative kernels, 2D convolution and long short-term memory, to validate and demonstrate the use of this new approach, and investigate how arithmetic intensity, cache locality, auto-tuning, kernel launch overhead, and Tensor Core usage can affect performance. Compared to the common ad-hoc approach, this study helps form a more systematic way to analyze code performance and identify optimization opportunities for deep learning applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。