Pagoda:边缘加速器上DNN工作负载的能量与时间Roofline研究
Pagoda: An Energy and Time Roofline Study for DNN Workloads on Edge Accelerators
AI总结:
本研究针对边缘加速器DNN工作负载,提出时间与新颖能量roofline模型,从第一性原理揭示功率模式性能规律,并用于调优功率模式,实现高达15%能耗降低且推理时间几乎不变。
摘要:
边缘加速器(如Nvidia Jetson系列)正成为计算连续体(computing continuum)中不可或缺的一部分,并常用于DNN推理和训练。Nvidia Jetson边缘设备在70W功率包络内拥有2000多个CUDA核心,并提供数千种功率模式以定制CPU、GPU和内存频率。它们广泛变化的功率-性能权衡可被利用于受能量和功率约束的部署场景。尽管存在用于预测边缘设备上DNN工作负载功率和延迟的数据驱动方法,但缺乏原理性研究来理解为何边缘加速器及其功率模式会表现出如此性能。我们针对Jetson Orin AGX开发了时间roofline模型和一种新颖的能量roofline模型,覆盖多种功率模式,并将其与DNN推理工作负载的计算量(FLOP)和内存访问量(字节)的解析模型相结合,从第一性原理进行分析。这些模型揭示了边缘加速器上DNN工作负载功率和性能行为的独特、有时违反直觉的洞察,例如,默认功率模式MAXN并非最节能的,且在所有功率模式下,时间效率意味着能量效率。我们还将解析roofline模型扩展到DNN训练。最后,我们应用这些方法调整边缘设备的功率模式(从而调整roofline),以优化DNN推理的延迟和能量,实现高达15%的能量降低且推理时间退化极小。
英文摘要:
Edge accelerators such as Nvidia Jetsons are becoming an integral part of the computing continuum, and are often used for DNN inferencing and training. Nvidia Jetson edge devices have $2000$+ CUDA cores within a $70$W power envelope and offer $1000$s of power modes to customize CPU, GPU and memory frequencies. Their widely varying power--performance trade-offs can be exploited for energy and power-constrained deployments. While data-driven methods to predict the power and latency of DNN workloads for edge devices exist, there is a lack of principled study to understand why edge accelerators and their power modes perform the way they do. We develop a time roofline and a novel energy roofline model for the Jetson Orin AGX for diverse power modes, and couple it with an analytical model of the compute (FLOP) and memory access (bytes) for DNN inference workloads to analyze them from first principles. These reveal unique, sometimes counter-intuitive, insights into the power and performance behavior of DNN workloads on edge accelerators, e.g., the default power mode MAXN is not the most energy efficient and time efficiency implies energy efficiency for all power modes. We also extend our analytical roofline models to DNN training. Finally, we apply these methods to tune the power mode (and hence the roofline) of the edge device to optimize the latency and energy for DNN inference, with up to $15\%$ lower energy and minimal degradation in inference time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。