Skip to main content
QUICK REVIEW

[Paper Review] GPU Kernels for High-Speed 4-Bit Astrophysical Data Processing

Peter Klages, Kevin Bandura|arXiv (Cornell University)|Mar 20, 2015
Radio Astronomy Observations and TechnologyPhysics and Astronomy3 references4 citations
TL;DR

This paper presents OpenCL-based GPU kernels for high-speed 4-bit astrophysical data correlation in interferometric radio telescopes, leveraging 4-bit data packing and fused multiply-add instructions to achieve 131% of theoretical peak performance on AMD GPUs. The method enables efficient, scalable O(N²) correlation for large N, with real-time operation demonstrated on the CHIME Pathfinder correlator.

ABSTRACT

Interferometric radio telescopes often rely on computationally expensive O(N^2) correlation calculations; fortunately these computations map well to massively parallel accelerators such as low-cost GPUs. This paper describes the OpenCL kernels developed for the GPU based X-engine of a new hybrid FX correlator. Channelized data from the F-engine is supplied to the GPUs as 4-bit, offset-encoded real and imaginary integers. Because of the low bit width of the data, two values may be packed into a 32-bit register, allowing multiplication and addition of more than one value with a single fused multiply-add instruction. With this data and calculation packing scheme, as many as 5.6 effective tera-operations per second (TOPS) can be executed on a 4.3 TOPS GPU. The kernel design allows correlations to scale to large numbers of input elements, limited only by maximum buffer sizes on the GPU. This code is currently working on-sky with the CHIME Pathfinder Correlator in BC, Canada.

Motivation & Objective

  • To develop a high-performance, portable X-engine correlator for interferometric radio telescopes using low-bit-depth data.
  • To overcome the hardware and software limitations of CUDA-based solutions by using OpenCL for cross-platform GPU compatibility.
  • To maximize computational efficiency on low-cost GPUs by exploiting 4-bit data packing and fused multiply-add instructions.
  • To enable scalable, real-time correlation of large numbers of interferometric elements (N up to 8192) in the CHIME Pathfinder and full CHIME instrument.
  • To provide an open-source, vendor-agnostic alternative to existing CUDA-based correlators like xGPU, with superior performance on 4-bit data.

Proposed method

  • The method uses 4-bit offset-encoded real and imaginary data packed two per 32-bit word to maximize data throughput.
  • It leverages the AMD GPU's fused multiply-add instruction (mad24) to compute two complex correlations per instruction, reducing arithmetic operations.
  • The kernel implements a tiled, upper-triangular correlation algorithm that computes only unique pairs to reduce redundant operations.
  • The implementation is written in OpenCL for portability across GPU vendors, with optimizations tuned for AMD Southern Islands GPUs.
  • The design supports simultaneous processing of multiple frequency sub-bands and includes extensions for time-lag compensation and gated correlation.
  • The algorithm is memory-bound by GPU buffer sizes, not compute capacity, allowing scaling to large N.

Experimental results

Research questions

  • RQ1Can 4-bit data packing combined with fused multiply-add instructions achieve higher effective throughput than standard floating-point or integer operations on GPUs?
  • RQ2How does the performance of a 4-bit packed kernel compare to the theoretical peak performance of the GPU, especially when compared to existing CUDA-based implementations?
  • RQ3To what extent can the algorithm scale to large numbers of input elements (N) without performance degradation?
  • RQ4Can an OpenCL-based implementation outperform a highly optimized CUDA-based X-engine like xGPU on 4-bit data?
  • RQ5What are the I/O and memory bandwidth requirements for real-time processing of high-bandwidth astrophysical data on modern GPUs?

Key findings

  • The 4-bit packed kernel achieves 131% of the theoretical peak performance of the GPU when processing N=2048 input elements, exceeding the performance of the CUDA-based xGPU implementation on 4-bit data.
  • The algorithm processes up to 331,800 correlation matrices per second on a single AMD R9 280X GPU, enabling real-time operation for the CHIME Pathfinder (N=256).
  • For full CHIME (N=2048, 400 MHz bandwidth), approximately 1,200 GPUs are required, with I/O bandwidth becoming negligible above N=256.
  • The kernel maintains high efficiency even when processing multiple frequency sub-bands simultaneously, with minimal performance impact.
  • The implementation achieves 81% hardware utilization, lower than xGPU’s 91%, but still outperforms it on 4-bit data due to effective data packing.
  • The code is open-source and portable, with minimal re-optimization needed for other GPUs supporting similar instruction sets.

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.