[Paper Review] High Performance Implementation of Boris Particle Pusher on DPC++. A First Look at oneAPI
This paper presents a high-performance DPC++ implementation of the Boris particle pusher algorithm ported from optimized C++ code for the Hi-Chi framework, demonstrating near-identical performance on Intel Xeon CPUs (~10% slower on average) and surprisingly good out-of-the-box performance on Intel GPUs (e.g., Iris Xe Max achieving 1.00 NSPS in SoA layout), proving oneAPI's potential for portable, high-performance plasma simulation code across heterogeneous architectures without extensive GPU-specific tuning.
New hardware architectures open up immense opportunities for supercomputer simulations. However, programming techniques for different architectures vary significantly, which leads to the necessity of developing and supporting multiple code versions, each being optimized for specific hardware features. The oneAPI framework, recently introduced by Intel, contains a set of programming tools for the development of portable codes that can be compiled and fine-tuned for CPUs, GPUs, FPGAs, and accelerators. In this paper, we report on the experience of porting the implementation of Boris particle pusher to oneAPI. Boris particle pusher is one of the most demanding computational stages of the Particle-in-Cell method, which, in particular, is used for supercomputer simulations of laser-plasma interactions. We show how to adapt the C++ implementation of the particle push algorithm from the Hi-Chi project to the DPC++ programming language and report the performance of the code on high-end Intel CPUs (Xeon Platinum 8260L) and Intel GPUs (P630 and Iris Xe Max). It turned out that our C++ code can be easily ported to DPC++. We found that on CPUs the resulting DPC++ code is only ~10% on average inferior to the optimized C++ code. Moreover, the code is compiled and run on new Intel GPUs without any specific optimizations and shows the expected performance, taking into account the parameters of the hardware.
Motivation & Objective
- To evaluate the feasibility and performance of porting a high-performance C++ particle pusher to DPC++ using oneAPI for heterogeneous computing.
- To compare the performance of the DPC++ implementation on Intel CPUs and GPUs against a hand-optimized C++ version.
- To assess the impact of data layout (AoS vs. SoA) and NUMA-aware memory access on performance in DPC++.
- To determine whether DPC++ enables portable, high-performance code across CPUs and GPUs without extensive GPU-specific tuning.
Proposed method
- Ported an optimized C++ particle pusher implementation from the Hi-Chi framework to DPC++ using the oneAPI programming model.
- Replaced OpenMP-based parallelism with DPC++ oneDNN-style parallel kernels using SYCL-based DPC++ constructs.
- Employed both AoS (Array of Structs) and SoA (Structure of Arrays) data layouts to evaluate memory access patterns on CPUs and GPUs.
- Configured DPC++ code for NUMA-aware memory access on multi-socket CPUs to optimize cache locality and memory bandwidth.
- Executed performance benchmarks on high-end Intel Xeon Platinum 8260L CPUs and Intel P630/Iris Xe Max GPUs in single and double precision.
- Used the same computational kernel across CPU and GPU targets to evaluate portability and performance portability.
Experimental results
Research questions
- RQ1Can a high-performance C++ particle pusher be effectively ported to DPC++ with minimal changes and acceptable performance loss on CPUs?
- RQ2How does the DPC++ implementation perform on Intel GPUs without any GPU-specific optimizations compared to optimized CPU code?
- RQ3What is the impact of data layout (AoS vs. SoA) on performance in DPC++ on CPUs and GPUs?
- RQ4To what extent does NUMA-aware memory access improve DPC++ performance on multi-socket CPUs?
- RQ5Can oneAPI enable portable, high-performance HPC code for plasma simulations across CPUs and GPUs with minimal rework?
Key findings
- The DPC++ implementation on Intel Xeon Platinum 8260L CPUs is only ~10% slower on average than the hand-optimized C++ code, demonstrating effective porting with minimal performance loss.
- The DPC++ code achieves strong scaling efficiency of up to 63% on 48 CPU cores, indicating good parallelization and NUMA-aware memory access.
- On Intel Iris Xe Max GPU, the DPC++ code achieves 1.00 nanoseconds per particle per step (NSPS) in SoA layout with single precision, outperforming expectations for an unoptimized port.
- The performance difference between AoS and SoA layouts is more than 50% on GPUs (e.g., 2.10 vs. 1.00 NSPS on Iris Xe Max), highlighting the critical role of data layout in GPU memory access patterns.
- Despite the lack of GPU-specific optimizations, the DPC++ code on P630 and Iris Xe Max GPUs runs 3.5–4.5× and 1.7–2.6× slower than high-end CPUs, respectively, indicating strong potential for further optimization.
- The results confirm that oneAPI and DPC++ enable portable, high-performance HPC code across CPUs and GPUs, with minimal effort required for initial porting and promising performance on new Intel GPU architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.