Abstract
Simulating neutral particle transport is a computationally intensive task essential for nuclear engineering, characterized by a high-dimensional state space and complex serial dependencies. This paper evaluates the acceleration of the SNAP mini-app on thousands of GPUs across the Titan and Piz Daint supercomputers. By implementing a novel many-core wavefront scheme and an updated performance model, the authors demonstrate up to a 4x speedup over optimized CPU implementations and successful weak scaling to over 8,000 nodes.
Introduction: The Challenge of Neutral Particle Transport
Neutral particle transport simulations—modeling the movement of neutrons or photons through matter—are foundational to nuclear physics. These simulations operate in a seven-dimensional space (3D space, 2D angle, energy, and time), leading to a significant "curse of dimensionality." In high-performance computing (HPC) environments, these calculations often account for 50–80% of total runtime.
The primary bottleneck is the "sweep" algorithm. As shown in Figure 3, the state of a single cell (represented by $\psi$) depends on its "upwind" neighbors. This creates a serial dependency chain where computation must proceed as a wavefront across the spatial grid.
This inherent seriality makes parallelization on many-core architectures like GPUs—which rely on massive, independent data parallelism—exceptionally difficult. Furthermore, the memory requirements for storing angular flux often exceed the capacity of individual GPU devices.
Methodology
To address these challenges, the authors extended the SNAP (SN Application Proxy) mini-app using several key strategies:
- Spatial Decomposition: The KBA (Koch-Baker-Alcouffe) algorithm was employed to slice the 3D domain into "pencils," allowing different nodes to process different spatial regions simultaneously.
- Many-Core Wavefront Parallelism: While traditional CPU versions process cells within a pencil serially, this work utilizes OpenCL to parallelize across angles, energy groups, and cells within the local wavefront. Figure 5 illustrates how these wavefronts propagate for different octants (directions).
- Chunking: To balance GPU kernel launch overhead against network latency, the authors implemented "chunking," where multiple XY-planes are computed before data is transmitted via MPI.
- Performance Modeling: The classic Bailey and Falgout model was extended to account for GPU-specific behaviors, such as the impact of kernel enqueue counts on runtime saturation.
Experimental Setup
Performance was evaluated using synthetic benchmarks on two premier supercomputers:
- Titan (Cray XK7): Utilizing NVIDIA K20X GPUs.
- Piz Daint (Cray XC30): Utilizing NVIDIA K20X GPUs with a faster interconnect.
The benchmarks included weak scaling (constant workload per node) and strong scaling (fixed $256^3$ grid across increasing nodes) scenarios, representing realistic reactor physics problems.
Key Insights
- Network Sensitivity: Accelerating the compute phase on GPUs shifts the bottleneck to the interconnect. On Titan, communication accounted for over 80% of runtime at extreme scales.
- GPU Saturation: Unlike CPU "grind time" models, GPU performance models must account for the fact that kernels with few work-items (at the wavefront's edges) take nearly as long as fully saturated kernels.
- Memory Constraints: The requirement to store full angular flux for time-dependent solves makes problem size strictly limited by GPU VRAM (e.g., 6GB on the K20X), necessitating high scalability to distribute data.
Results and Performance
The GPU implementation achieved significant performance gains:
- Speedup: A 4x speedup was observed on Titan and a 2x speedup on Piz Daint compared to optimized CPU versions. The difference is attributed to Piz Daint's superior interconnect and newer CPUs.
- Scalability: The code demonstrated robust weak scaling up to 8,192 nodes on Titan.
- Model Accuracy: The modified performance model predicted runtimes with an average accuracy of ~18% for both CPU and GPU across all scales.
- Efficiency: Parallel efficiency remained near 70% up to 2,048 nodes on Piz Daint, outperforming the older Gemini interconnect on Titan.
Conclusion and Future Directions
While this work demonstrates the feasibility of extreme-scale transport simulations on GPUs, limitations remain. The strict reliance on resident VRAM limits problem sizes. Future work will explore data streaming from host memory to bypass VRAM limits and porting the code to OpenMP 4.5 for broader hardware portability, including Intel Xeon Phi architectures. Strong scaling also remains a persistent challenge due to the high communication-to-computation ratio inherent in sweep algorithms.
Summary updated