Abstract
We study parallel particle-in-cell (PIC) methods for low-temperature plasmas (LTPs), which discretize kinetic formulations that capture the time evolution of the probability density function of particles as a function of position and velocity. We use a kinetic description for electrons and a fluid approximation for heavy species. In this paper, we focus on GPU acceleration of algorithms for velocity-space interactions and in particular, collisions of electrons with neutrals, ions, and electrons. Our work has two thrusts. The first is algorithmic exploration and analysis. The second is examining the viability of rapid-prototyping implementations using Python-based HPC tools, in particular PyKokkos. We discuss several common PIC kernels and present performance results on NVIDIA Volta V100 and AMD MI250X GPUs. Overall, the MI250X is slightly faster for most kernels but shows more sensitivity to register pressure. We also report scaling results for a distributed memory implementation on up to 16 MPI ranks.
Introduction
Simulating low-temperature plasmas (LTPs) is a cornerstone of modern semiconductor processing and materials science, yet it remains computationally daunting. These simulations typically employ Particle-in-Cell (PIC) methods to track electron probability density functions while using fluid approximations for heavier species. The primary computational bottleneck lies in modeling collisional processes—elastic, ionization, recombination, and Coulombic interactions. These processes introduce irregular data access, dynamic memory management challenges, and complex synchronization requirements, particularly for electron-electron (Coulombic) collisions which require pairing particles within spatial cells.
Algorithmic Innovations
To address these bottlenecks, this work explores several high-performance computing strategies tailored for modern GPU architectures:
- Optimized Atomics: Rather than relying on complex sorting or pre-allocated buffers for particle creation (e.g., during ionization), the solver utilizes atomic operations to manage shared write indices. In modern GPUs, these operations are highly optimized; the low collision rates in LTPs minimize thread contention, leading to up to a 6x speedup over non-atomic alternatives.
- Efficient Coulombic Pairing: To implement the Takizuka and Abe method for electron-electron interactions, the solver groups particle indices by cell using prefix sums and atomic operations on the fly, avoiding the high cost of full array sorting.
- The "Null Collision" Paradox: Interestingly, the traditional "null collision" method—intended to save computation by testing only a subset of particles—was found to be counterproductive on GPUs. Because the kernels are memory-bound rather than compute-bound, the overhead of random selection outweighed the mathematical savings.
Performance Portability via PyKokkos
A key contribution of this research is the use of PyKokkos, a Python-based HPC framework. By writing kernels in Python that are translated into Kokkos/C++, the authors achieved performance portability across NVIDIA (CUDA) and AMD (HIP) architectures without maintaining separate codebases.
Architectural analysis revealed that while the AMD MI250X offers higher peak performance, it is more sensitive to register pressure. The NVIDIA V100 outperformed the AMD GPU on heavy DSMC collision kernels due to their high register requirements for complex cross-section calculations, whereas the AMD hardware excelled in simpler pairing and reduction kernels.
Key Results and Scaling
The solver achieves exceptional throughput, reaching a processing time of approximately 0.2 nanoseconds per particle per time step when scaled to 16 GPUs.
As shown in Figure 1, the time per particle decreases significantly as the total number of particles (N) increases, as the fixed overheads of kernel launches and RNG initialization become amortized over a larger workload.
The implementation demonstrates robust strong and weak scaling up to 16 MPI ranks (Figure 2). While parallel efficiency decreases slightly at higher GPU counts due to the $O(M)$ communication cost of synchronizing the replicated spatial grid, the solver remains highly effective for large-scale simulations involving up to 64 million particles.
Conclusion
This work demonstrates that high-level languages like Python, when paired with frameworks like PyKokkos, are viable for high-performance plasma physics simulations. The inclusion of optimized Coulombic collisions is not just a performance milestone but a physical necessity; simulations showed that including these interactions can shift calculated electron temperatures by over 1 eV. Future work will address the memory bottlenecks of grid replication through domain decomposition and explore variable-weight particle support to further enhance simulation fidelity.
Summary updated