Skip to main content
QUICK REVIEW

[Paper Review] AccFFT: A library for distributed-memory FFT on CPU and GPU architectures

Amir Gholami, Judith Hill|arXiv (Cornell University)|Jun 26, 2015
Parallel Computing and Optimization TechniquesComputer Science24 references25 citations
TL;DR

AccFFT is a high-performance, open-source library for distributed-memory Fast Fourier Transforms (FFT) on CPU and GPU clusters, using pencil decomposition and overlapping GPU PCIe transfers with computation to reduce communication overhead. It achieves strong scaling up to 4,096 K20 GPUs on the Titan system, making it the first open-source GPU FFT library to support pencil decomposition at scale.

ABSTRACT

We present a new library for parallel distributed Fast Fourier Transforms (FFT). The importance of FFT in science and engineering and the advances in high performance computing necessitate further improvements. AccFFT extends existing FFT libraries for CUDA-enabled Graphics Processing Units (GPUs) to distributed memory clusters. We use overlapping communication method to reduce the overhead of PCIe transfers from/to GPU. We present numerical results on the Maverick platform at the Texas Advanced Computing Center (TACC) and on the Titan system at the Oak Ridge National Laboratory (ORNL). We present the scaling of the library up to 4,096 K20 GPUs of Titan.

Motivation & Objective

  • To address the lack of scalable, open-source GPU FFT libraries supporting pencil decomposition in distributed-memory systems.
  • To improve performance of large-scale FFTs by overlapping GPU memory transfers with computation, reducing PCIe bottlenecks.
  • To enable efficient, portable, and scalable FFTs across heterogeneous CPU-GPU clusters for scientific computing workloads.
  • To support both real and complex transforms, including multidimensional transforms beyond 3D.
  • To provide a production-ready, open-source alternative to proprietary or unmaintained GPU FFT libraries.

Proposed method

  • Uses pencil decomposition for 3D FFTs to enable better load balancing and scalability compared to slab decomposition.
  • Employs non-blocking MPI all-to-all communication to overlap data transposes with local FFT computations.
  • Overlaps GPU memory transfers (PCIe) with computation using pipelining and asynchronous kernels.
  • Leverages cuFFT for local FFTs on GPUs and MPI for inter-node communication.
  • Supports both complex-to-complex (C2C) and real-to-complex (R2C) transforms with optimized data layouts.
  • Uses a hybrid MPI+OpenMP model for CPU execution and integrates GPU-aware MPI for GPU-aware communication.

Experimental results

Research questions

  • RQ1Can GPU-accelerated FFTs scale efficiently on large distributed-memory clusters when communication and memory bandwidth are limiting factors?
  • RQ2Does overlapping PCIe transfers with computation significantly improve GPU FFT performance on multi-node systems?
  • RQ3Can pencil decomposition be effectively implemented in GPU-based distributed FFT libraries to improve scalability beyond slab decomposition?
  • RQ4How does the performance of GPU-based FFTs compare to CPU-based FFTs when multiple CPU cores per node are available?
  • RQ5Can the library maintain strong scaling to 4,096 GPUs while supporting both real and complex transforms?

Key findings

  • AccFFT achieves strong scaling up to 4,096 K20 GPUs on the Titan system, demonstrating the largest-scale open-source GPU FFT with pencil decomposition.
  • The GPU version achieves 26% efficiency for a 32× increase in GPU count, outperforming CPU code with 2 cores per node due to effective PCIe overlap.
  • Communication time remains comparable between CPU and GPU versions due to overlapping of PCIe transfers with computation, reducing the performance gap.
  • The library outperforms FFTE and other GPU FFT libraries in both strong and weak scaling tests, especially in communication-heavy phases.
  • For 4D transforms (512×256×128×64), AccFFT maintains strong scaling efficiency, showing that the communication pattern generalizes to higher dimensions.
  • The CPU version on Titan shows 40% efficiency for a 32× core increase, indicating that CPU scaling is limited by communication and not computation, especially when multiple cores per node are used.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.