Enabling a high throughput real time data pipeline for a large radio telescope array with GPUs

Richard G. Edgar, Michael A. Clark, Kevin Dale, Daniel A. Mitchell, Stephen M. Ord, Randall B. Wayth, Hanspeter Pfister, Lincoln J. GreenhillComput. Phys. Commun 2010 · DOI

TL;DR

This paper details the implementation of a high-throughput, real-time data processing pipeline for the Murchison Widefield Array (MWA) radio telescope using NVIDIA GPUs. By leveraging the parallel processing power of GPUs, they achieve a significant speedup, enabling on-site data reduction for a telescope generating massive amounts of data, paving the way for future exascale computing in astronomy.

What Problem Does This Paper Address?

Modern radio telescopes, like the Murchison Widefield Array (MWA), are generating an unprecedented volume of data. The MWA, a next-generation radio telescope in Australia, will produce data at a rate of 5 GiB per second. Archiving, transporting, and processing this data offline is impractical and too slow for timely scientific discovery. The challenge is to process this massive data stream in real-time, on-site, to extract meaningful scientific results. This requires a computational capability of approximately 2.5 TFLOPs (trillions of floating-point operations per second) to reduce each 8-second data batch before the next one arrives. Furthermore, the remote and isolated location of the MWA imposes strict power constraints, limiting the available energy for computation.

Methods

The authors describe the development of a scalable, heterogeneous computing pipeline that heavily relies on Graphics Processing Units (GPUs). The core idea is to offload the computationally intensive tasks of the data processing pipeline to GPUs, which offer high computing density and a favorable FLOP-per-Watt ratio compared to traditional CPUs.

Key aspects of their approach include:

  • GPU-centric Architecture: The majority of the processing elements in the pipeline are implemented on GPUs. CPUs are primarily used for data flow control and specialized calculations.
  • CUDA Implementation: They utilized NVIDIA's CUDA (Compute Unified Device Architecture) environment for programming the GPUs, allowing for a relatively straightforward porting of existing C code.
  • Minimizing Data Transfers: Recognizing that data transfers between the CPU and GPU are a significant bottleneck, they aimed to implement the entire pipeline on the GPU to minimize these transfers. This involved modifying data structures to include GPU-specific data pointers and carefully managing memory allocation.
  • Optimized Gridding Algorithm: A particularly challenging part of the pipeline was the "gridder," which interpolates scattered visibility data onto a regular grid. They explored both an OpenGL-based scatter approach and a CUDA-based gather approach, ultimately developing an optimized CUDA gather algorithm that significantly reduced processing time by binning data and using lookup tables to limit the search space for visibilities.
  • Weak and Strong Scaling: The system is designed to scale both weakly (adding more nodes to process more channels) and strongly (improving performance within a node by utilizing multiple GPUs).

Datasets

Not discussed in the paper. The paper focuses on the processing pipeline for real-time data from the Murchison Widefield Array itself, rather than using pre-existing datasets for training or evaluation.

Key Insights and Ideas

  • GPUs as the Backbone for Radio Astronomy Data Processing: The paper strongly advocates for GPUs as a practical and powerful solution for handling the "data deluge" in modern astronomy, demonstrating their ability to meet the demanding computational requirements.
  • The Bottleneck is Not Just Computation, But Data Movement: A crucial realization was that the efficiency of data transfer between the CPU and GPU significantly impacts overall performance. This led to the strategy of keeping data on the GPU as much as possible.
  • Algorithmic Innovation is Key for GPU Performance: Simply porting existing CPU algorithms to GPUs is not always optimal. The development of a specialized, thread-safe gather algorithm for the gridder was essential for achieving significant speedups.
  • GPU Architecture Enables Scalability: The design allows for both scaling up the number of processing nodes and improving performance within each node, making it adaptable to future increases in data rates and computational needs.
  • Pathfinder for Future Facilities: The MWA's GPU-based pipeline serves as a crucial testbed and a blueprint for planned peta- and exascale computing facilities in astronomy, such as the Square Kilometer Array (SKA).

Key Results

The paper presents significant performance improvements achieved by porting the MWA's Real Time System (RTS) pipeline to GPUs:

  • Overall Speedup: The GPU-accelerated pipeline achieves an overall speedup of approximately 72x compared to the CPU version for the tested parameters.
  • Stage-Specific Speedups:
    • Main Calibrator Loop: 148x speedup.
  • Gridding Convolution (CUDA): 22x speedup.
  • Polarisation Conversion Engine: 34x speedup.
  • Regridding Engine: 28x speedup.
  • Real-time Processing Achieved: The GPU implementation successfully meets the 8-second cadence requirement for processing data, a feat not possible with the original CPU code.
  • Power Efficiency: The GPU system, while powerful, operates within the strict power budget of the MWA site, consuming approximately 25.6 kW for the computational hardware.
  • Sustained Performance: The pipeline achieves a sustained performance of about 50 GFLOPs per second and a sustained bandwidth of about 28 GiB per second on a single GPU. When scaled to 64 GPUs, this implies a performance of 3.2 TFLOPs, consistent with the project's requirements.

Limitations and Future Work

  • Current Performance vs. Theoretical Peak: The authors note that their current GPU implementation does not fully utilize the theoretical peak performance of the GPUs in terms of FLOPs and memory bandwidth. They are actively working to improve this.
  • Array Indexing and Memory Coalescing: They identify that suboptimal array indexing on the GPU can lead to poor memory transaction coalescing, and re-ordering arrays to maximize this is a promising avenue for further performance gains.
  • Asynchronous CUDA API: The use of synchronous kernel invocations is a limitation. They plan to explore the asynchronous CUDA API to overlap computation and data streaming, further improving efficiency.
  • Gridder Optimization: While significant progress was made on the gridder, further optimization is planned to better reflect the non-uniform distribution of visibilities in the u-v plane.
  • Data Acquisition Bottleneck: The data acquisition thread is currently a bottleneck, causing the main pipeline thread to wait. Removing this wait could allow for processing larger images.

The paper concludes by emphasizing that the MWA's GPU-based pipeline is a practical demonstration of how highly parallel GPU processing can be a key component of scalable computing platforms for future astronomical instruments, particularly those facing massive data streams.

Summary updated

BibTeX
@article{edgar2010enabling,
  author = {Richard G. Edgar and Michael A. Clark and Kevin Dale and Daniel A. Mitchell and Stephen M. Ord and Randall B. Wayth and Hanspeter Pfister and Lincoln J. Greenhill},
  title = {{Enabling a high throughput real time data pipeline for a large radio telescope array with GPUs}},
  journal = {Comput. Phys. Commun.},
  year = {2010},
  doi = {10.1016/j.cpc.2010.06.019},
}
Figure