Landau collision operator in the CUDA programming model applied to thermal quench plasmas

Mark F. Adams, Dylan P. Brennan, Matthew G. Knepley, Peng WangIPDPS 2022

TL;DR

This paper presents a GPU-accelerated implementation of the Landau collision operator, a computationally expensive but crucial component for simulating plasma behavior. By leveraging CUDA and Kokkos programming models, they demonstrate that this operator can be made practical for complex simulations like thermal quenches, paving the way for more accurate and efficient plasma physics research.

What Problem Does This Paper Address?

Accurately simulating plasmas, especially those undergoing rapid changes like thermal quenches, requires modeling the complex interactions between particles. The Landau form of the Fokker-Planck equation is the gold standard for this, but its O(N²) complexity makes it computationally prohibitive for large-scale simulations. This paper tackles the challenge of making this essential but costly collision operator computationally feasible by adapting it to modern GPU hardware.

Methods

The authors extend previous work on a finite element discretization of the Landau operator with adaptive mesh refinement. The core innovation lies in their implementation for GPUs using both the CUDA and Kokkos programming models. They detail optimizations for loop structures, data layout, and parallel execution on GPUs, including strategies for efficient matrix construction and solving. A key aspect is the use of Kokkos to provide portability across different hardware architectures (NVIDIA, AMD, Fujitsu/ARM). They also implement a thermal quench model that utilizes this Landau operator.

Datasets

Not discussed in the paper. The paper focuses on the numerical methods and performance of a plasma simulation model rather than training on or evaluating against specific datasets.

Key Insights and Ideas

  • GPU Acceleration is Key: The O(N²) complexity of the Landau operator is a major bottleneck, and this work demonstrates that GPUs are a viable solution to mitigate this cost.
  • Kokkos for Portability: Using Kokkos allows the same code to run efficiently on diverse hardware architectures (NVIDIA, AMD, Fujitsu/ARM), which is crucial for modern high-performance computing.
  • Adaptive Mesh Refinement is Crucial: While GPUs help, adaptive mesh refinement is still necessary to efficiently represent the solution and reduce the overall computational burden.
  • Thermal Quenches are Important and Complex: The paper highlights the significance of thermal quenches in fusion plasmas, particularly their potential to generate runaway electrons, and shows their model can capture some of these dynamics.
  • Hardware Utilization Matters: Detailed analysis of GPU hardware utilization (e.g., FP64 pipe, L1 cache) is presented, revealing bottlenecks and areas for further optimization.

Key Results

  • The paper demonstrates that the Landau operator can be practically implemented on GPUs, achieving significant performance gains compared to CPU-based approaches.
  • They report high FP64 pipe utilization (66.4%) on an NVIDIA V100 GPU for the Jacobian kernel, achieving 4.15 TFlop/s, which is 53% of the peak DFMA throughput.
  • Performance comparisons show CUDA generally outperforming Kokkos-CUDA by about 15%, but Kokkos offers portability.
  • Preliminary results on AMD and Fujitsu/ARM hardware using Kokkos-HIP and Kokkos-OpenMP, respectively, are presented, showing varying degrees of performance and scaling.
  • The implemented thermal quench model qualitatively reproduces expected plasma dynamics, though it requires further refinement to fully capture runaway electron generation.

Limitations and Future Work

  • Runaway Electron Generation: The current thermal quench model, while qualitatively reproducing dynamics, is not yet complete enough to generate seed runaway electrons without unrealistically high electric fields.
  • Linear Solves and Vector Operations: The authors note that linear solves and vector operations still represent a significant portion of the computational cost and require further optimization, potentially through batching of spatial points.
  • GPU Iterative Solver: A custom GPU iterative solver is under development to address the limitations of existing CPU solvers.
  • Multi-Grid Support: Integration with global plasma models and adding support for multiple grids for groups of species with similar thermal velocities are suggested future directions.
  • AMD and Fujitsu Performance: While Kokkos-HIP and Kokkos-OpenMP are presented, further work is needed to fully optimize performance on AMD and Fujitsu/ARM architectures, particularly addressing potential issues with MPS-like functionality and auto-vectorization.

Summary updated

BibTeX
@inproceedings{adams2022landau,
  author = {Mark F. Adams and Dylan P. Brennan and Matthew G. Knepley and Peng Wang},
  title = {{Landau collision operator in the CUDA programming model applied to thermal quench plasmas}},
  booktitle = {IPDPS},
  year = {2022},
  doi = {10.1109/ipdps53621.2022.00020},
}
Figure