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

tcFFT:通过张量核心加速半精度FFT

tcFFT: Accelerating Half-Precision FFT through Tensor Cores

Binrui Li, Shenggan Cheng, James Lin

摘要:

快速傅立叶变换(FFT)是科学计算和工程计算中必不可少的工具。随着对混合精度FFT的需求不断增长,半精度浮点(FP 16)算法的使用成为可能,以实现更快的速度和节能。NVIDIA Tensor Cores专注于较低精度,可提供极高的计算性能。然而,固定的计算模式使得它很难利用FFT的张量核心的计算能力。因此,我们开发了tcFFT来用Tensor Core加速FFT。我们的tcFFT支持各种大小的批量1D和2D FFT,并利用一组优化来实现高性能:1)Tensor Core片段上的单元素操作,以支持FFT所需的特殊操作; 2)细粒度数据排列设计,以协调GPU内存访问模式。我们在NVIDIA V100和A100 GPU上评估了各种大小和尺寸的tcFFT和NVIDIA cuFFT。结果表明,在两种GPU上,tcFFT的性能分别比cuFFT高1.29x-3.24x和1.10x-3.03x。我们的tcFFT具有很大的潜力,混合精度的科学应用。

英文摘要:

Fast Fourier Transform (FFT) is an essential tool in scientific and engineering computation. The increasing demand for mixed-precision FFT has made it possible to utilize half-precision floating-point (FP16) arithmetic for faster speed and energy saving. Specializing in lower precision, NVIDIA Tensor Cores can deliver extremely high computation performance. However, the fixed computation pattern makes it hard to utilize the computing power of Tensor Cores in FFT. Therefore, we developed tcFFT to accelerate FFT with Tensor Cores. Our tcFFT supports batched 1D and 2D FFT of various sizes and it exploits a set of optimizations to achieve high performance: 1) single-element manipulation on Tensor Core fragments to support special operations needed by FFT; 2) fine-grained data arrangement design to coordinate with the GPU memory access pattern. We evaluated our tcFFT and the NVIDIA cuFFT in various sizes and dimensions on NVIDIA V100 and A100 GPUs. The results show that our tcFFT can outperform cuFFT 1.29x-3.24x and 1.10x-3.03x on the two GPUs, respectively. Our tcFFT has a great potential for mixed-precision scientific applications.

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

↑