[Paper Review] tcFFT: Accelerating Half-Precision FFT through Tensor Cores
tcFFT is a high-performance FFT library that accelerates half-precision 1D and 2D FFTs using NVIDIA Tensor Cores by enabling single-element manipulation on Tensor Core fragments and optimizing memory access patterns. It achieves 1.29x–3.24x speedup over cuFFT on V100 and A100 GPUs across diverse FFT sizes and dimensions.
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.
Motivation & Objective
- To accelerate half-precision FFT on modern GPUs using NVIDIA Tensor Cores, which are optimized for low-precision GEMM but not natively suited for FFT’s special operations.
- To overcome the performance bottleneck caused by irregular memory access patterns in large or multidimensional FFTs.
- To design a portable, high-performance FFT library that supports batched 1D and 2D transforms across a wide range of sizes.
- To enable efficient utilization of Tensor Cores for FFT workloads, which are not well-supported by existing libraries like cuFFT.
- To demonstrate that Tensor Core acceleration can be effectively applied to scientific computing workloads beyond traditional dense linear algebra.
Proposed method
- Proposed a single-element manipulation technique on Tensor Core fragments to support FFT-specific operations such as complex matrix accesses and element-wise multiplications.
- Designed a fine-grained data arrangement strategy that enables continuous, coalesced memory access patterns across variable FFT sizes.
- Reorganized data layout in global memory to minimize uncoalesced strided accesses during merging phases in large or 2D FFTs.
- Leveraged shared memory to reduce global memory bandwidth pressure and improve arithmetic intensity.
- Implemented a kernel fusion strategy that maps FFT computation stages to Tensor Core operations with minimal data movement.
- Used the Tensor Core WMMA interface with custom memory layout and thread mapping to maximize occupancy and utilization.
Experimental results
Research questions
- RQ1Can Tensor Cores be effectively utilized to accelerate half-precision FFT despite their fixed GEMM-oriented design?
- RQ2How can irregular memory access patterns in large or multidimensional FFTs be mitigated to avoid GPU memory bottlenecks?
- RQ3What optimizations are required to support FFT’s special operations—such as complex arithmetic and element-wise scaling—on Tensor Cores?
- RQ4Can a single FFT library achieve consistent performance improvements across a wide range of 1D and 2D FFT sizes using Tensor Cores?
- RQ5How does the performance of a Tensor Core-optimized FFT library compare to the widely used cuFFT in real-world scientific computing workloads?
Key findings
- tcFFT achieves an average 1.90x speedup over cuFFT on 1D FFTs on the V100 GPU.
- On 2D FFTs, tcFFT outperforms cuFFT by 1.29x to 3.24x on the V100 and 1.10x to 3.03x on the A100 GPU.
- The performance advantage of tcFFT is most pronounced for larger FFT sizes and higher batch counts, where cuFFT’s memory access patterns degrade significantly.
- tcFFT maintains high performance even at small batch sizes, outperforming cuFFT when batch size exceeds 4 for 1D FFTs and 2 for 2D FFTs.
- The proposed single-element fragment manipulation technique enables efficient execution of FFT-specific operations on Tensor Cores, overcoming a key limitation of native hardware support.
- The optimized memory layout ensures continuous and coalesced global memory access, significantly reducing memory bandwidth bottlenecks in large-scale FFTs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.