Heimdall++: Optimizing GPU Utilization and Pipeline Parallelism for Efficient Single-Pulse Detection

Bingzheng Xia, Zujie Ren, Kuang Ma, Xiaoqian Li, Wenda Li, Shuibing HearXiv 2025 · DOI

Introduction

Modern radio astronomy facilities, such as the Five-hundred-meter Aperture Spherical radio Telescope (FAST) and the Square Kilometre Array (SKA), generate data at rates reaching hundreds of terabits per second. Detecting transient astronomical phenomena like Fast Radio Bursts (FRBs) and pulsars requires real-time processing, as the sheer volume of data makes long-term storage of raw signals infeasible. The current industry standard, Heimdall, utilizes GPU acceleration but faces significant efficiency challenges, including sequential execution of dispersion measure (DM) trials, frequent CPU-GPU data transfers, and high memory management overhead.

Methods

Heimdall++ addresses these bottlenecks through a ground-up redesign focused on four primary optimizations:

  1. Fine-Grained Parallelization: Unlike the original pipeline that processes DM trials sequentially, Heimdall++ employs OpenMP threads and multiple CUDA streams to execute independent trials concurrently.
  2. Unified Memory Management: By utilizing CUDA Unified Memory, the system automates data residency, eliminating redundant manual data copies and reducing PCIe bus traffic.
  3. Custom Shared Device-Memory Allocator: A thread-safe memory pool was implemented to reuse buffers across trials, significantly reducing the latency associated with frequent cudaMalloc calls.
  4. Decoupled Multi-File Pipelining: A two-stage architecture overlaps CPU-bound I/O tasks with GPU-bound computation, ensuring the GPU remains active during file transitions.
The parallelized architecture of Heimdall++ using multiple threads and CUDA streams.

Datasets and Evaluation

The performance of Heimdall++ was evaluated using real-world data from the FAST telescope:

  • 1 GB PSRFITS file: Utilized for detailed stage-level performance profiling.
  • 142 GB Filterbank file: A large-scale observation of the M5 globular cluster used to test system scalability.
  • FAST-FREX Dataset: A collection of 125 files (488 MB each) used to assess multi-file batch processing efficiency.

Key Insights

Profiling of the original Heimdall pipeline revealed that the "Peak Detection" stage was a primary bottleneck, consuming over 50% of the total processing time. Furthermore, the PCIe bus was identified as a major constraint; processing a 1GB file involved moving nearly 8GB of data due to repeated transfers of intermediate results. Heimdall++ successfully reduced this traffic to 1.17GB.

Profiling of processing stages showing Peak Detection as a major bottleneck.

Results

Experimental results demonstrate that Heimdall++ provides a 2.66× speedup for single large-file processing and a 2.05× speedup for multi-file batches. Average GPU utilization increased from approximately 51.2% to 92%. Additionally, the implementation of the custom memory allocator reduced cudaMalloc calls by a factor of 41.2×. Critically, the optimized pipeline maintains 100% result equivalence with the original Heimdall tool, ensuring scientific integrity.

Conclusion

Heimdall++ significantly enhances the efficiency of single-pulse detection pipelines by maximizing GPU saturation and minimizing data transfer overhead. While the optimal degree of parallelism is hardware-dependent, the system offers a robust framework for real-time radio astronomy. Future work will explore dynamic load balancing to automatically optimize resource allocation based on real-time GPU availability.

Summary updated

BibTeX
@misc{xia2025heimdall,
  author = {Bingzheng Xia and Zujie Ren and Kuang Ma and Xiaoqian Li and Wenda Li and Shuibing He},
  title = {{Heimdall++: Optimizing GPU Utilization and Pipeline Parallelism for Efficient Single-Pulse Detection}},
  year = {2025},
  eprint = {2512.00398},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.00398},
}
Figure