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:
- 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.
- Unified Memory Management: By utilizing CUDA Unified Memory, the system automates data residency, eliminating redundant manual data copies and reducing PCIe bus traffic.
- Custom Shared Device-Memory Allocator: A thread-safe memory pool was implemented to reuse buffers across trials, significantly reducing the latency associated with frequent
cudaMalloccalls. - 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.
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.
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