[论文解读] Efficiency Near the Edge: Increasing the Energy Efficiency of FFTs on GPUs for Real-Time Edge Computing
本文提出对NVIDIA GPU实施动态频率调节,以显著提升快速傅里叶变换(FFT)计算的能效,同时不损害实时性能。通过使用NVIDIA管理库(NVIDIA Management Library)调节核心时钟频率,作者在V100 GPU上实现了高达60%的功耗降低,执行时间增加不足10%,并证明针对每个GPU型号采用单一最优频率即可在不同FFT尺寸和精度下实现相近的节能效果。
The Square Kilometer Array (SKA) is an international initiative for developing the world's largest radio telescope with a total collecting area of over a million square meters. The scale of the operation, combined with the remote location of the telescope, requires the use of energy-efficient computational algorithms. This, along with the extreme data rates that will be produced by the SKA and the requirement for a real-time observing capability, necessitates in-situ data processing in an edge style computing solution. More generally, energy efficiency in the modern computing landscape is becoming of paramount concern. Whether it be the power budget that can limit some of the world's largest supercomputers, or the limited power available to the smallest Internet-of-Things devices. In this article, we study the impact of hardware frequency scaling on the energy consumption and execution time of the Fast Fourier Transform (FFT) on NVIDIA GPUs using the cuFFT library. The FFT is used in many areas of science and it is one of the key algorithms used in radio astronomy data processing pipelines. Through the use of frequency scaling, we show that we can lower the power consumption of the NVIDIA A100 GPU when computing the FFT by up to 47% compared to the boost clock frequency, with less than a 10% increase in the execution time. Furthermore, using one common core clock frequency for all tested FFT lengths, we show on average a 43% reduction in power consumption compared to the boost core clock frequency with an increase in the execution time still below 10%. We demonstrate how these results can be used to lower the power consumption of existing data processing pipelines. These savings, when considered over years of operation, can yield significant financial savings, but can also lead to a significant reduction of greenhouse gas emissions.
研究动机与目标
- 提升GPU上FFT计算的能效,适用于实时边缘计算与高性能计算场景。
- 应对大规模数据处理流水线中高功耗的问题,例如平方公里阵列(Square Kilometre Array, SKA)射电望远镜中的数据处理。
- 评估在调节GPU核心时钟频率时,能效与执行时间之间的权衡。
- 识别每个GPU型号的单一、通用最优核心时钟频率,使其在不同FFT问题规模和数值精度下均保持高能效。
提出的方法
- 系统性测量了在五款NVIDIA GPU(V100、P4、Titan V、Jetson Nano及其他型号)上,不同核心时钟频率下cuFFT库调用的功耗与执行时间。
- 采用动态电压与频率调节(DVFS)技术调整GPU时钟频率,同时满足实时处理约束。
- 在三种数值精度(FP16、FP32和FP64)下评估性能,覆盖广泛的FFT长度。
- 为每个GPU和精度类型识别出在功耗最低且执行时间增加低于10%条件下的最优核心时钟频率。
- 提出并验证了每个GPU型号的平均最优核心时钟频率,该频率可在所有FFT长度下实现接近最优的能效。
- 在真实数据处理流水线中实现了运行时频率切换,利用NVIDIA管理库(NVML)仅针对FFT内核执行进行调节。
实验结果
研究问题
- RQ1在现代NVIDIA GPU上,FFT计算期间最小化功耗的最优核心时钟频率是什么?
- RQ2动态频率调节如何影响不同FFT问题规模和数值精度下的执行时间与能效?
- RQ3对于给定GPU和精度,能否使用单一平均最优核心时钟频率适配所有FFT长度,实现接近最优的能效?
- RQ4在高吞吐量数据处理流水线中,不违反实时处理约束的前提下,能效最多可提升多少?
- RQ5在不同GPU架构(包括高端数据中心设备与低功耗边缘设备)上,能效提升效果如何扩展?
主要发现
- 在NVIDIA V100 GPU上,动态频率调节使FFT功耗相比提升时钟频率降低了高达60%,执行时间增加不足10%。
- 通过为每个GPU型号采用单一平均最优核心时钟频率,作者实现了相比提升频率平均50%的功耗降低,且执行时间增加仍低于10%。
- 对于Jetson Nano,能效最高提升了70%(FP32与FP16)和55%(FP64),但执行时间增加超过60%。
- 每个GPU和精度下的最优核心时钟频率在很大程度上与FFT长度无关,使得单一频率可适用于所有问题规模。
- 使用平均最优频率而非每长度最优频率时,能效提升5个百分点,该结果在所有GPU上保持一致,且性能损失极小。
- 在真实数据处理流水线中的实际部署验证了:通过NVML实现的动态频率调节使功耗降低与理论预测一致,在FFT占总执行时间60%的配置中观察到30%的能效增益。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。