TL;DR
As next-generation high-energy physics experiments prepare to flood data centers with petabytes of data, relying solely on CPUs is no longer viable. This paper evaluates two leading portable programming models, SYCL and OpenMP, by porting a critical Liquid Argon Time Projection Chamber (LArTPC) simulation from the Wire-Cell Toolkit. The authors demonstrate that while both models achieve overall performance comparable to Kokkos across diverse CPU and GPU architectures, significant differences emerge in handling atomic operations and compiler maturity.
What Problem Does This Paper Address?
The upcoming Deep Underground Neutrino Experiment (DUNE) is expected to generate a staggering 30 petabytes of data per year from its far detector modules alone. Processing this massive volume of data requires high-performance computing (HPC) systems equipped with heterogeneous architectures—specifically, compute accelerators like GPUs from various vendors (NVIDIA, AMD, and Intel).
Writing native code (e.g., CUDA for NVIDIA, HIP for AMD) for each specific architecture is unsustainable for experimental High Energy Physics (HEP) software, which undergoes rigorous validation processes. To avoid rewriting code for every new hardware generation, researchers need "write-once, run-anywhere" portable programming models. This paper addresses the viability, performance, and challenges of using SYCL and OpenMP as portable frameworks for complex HEP simulation workflows.
Methods
The authors focused on the LArTPC signal simulation within the Wire-Cell Toolkit (WCT), using a standalone benchmark code called wire-cell-gen. The simulation consists of three primary computational steps:
- Rasterization: Binning ionization electron groups into patches (highly parallelizable floating-point operations).
- Scatter-Add: Stacking and summing these patches over a massive grid, which heavily relies on parallel atomic addition operations.
- Convolution: Convolving the grid with detector response using Fast Fourier Transforms (FFTs).
Building upon a previous, successful GPU port using Kokkos, the authors translated the workflow into both SYCL and OpenMP. Because neither SYCL nor OpenMP natively provides a portable way to call vendor-optimized math libraries, the authors developed custom wrappers to dispatch to hardware-specific libraries: cuFFT/cuRAND for NVIDIA GPUs, rocFFT/rocRAND for AMD GPUs, and standard FFTW/Random123 for CPUs.
Datasets
The paper does not use a traditional machine learning dataset. Instead, performance is evaluated using a simulation benchmark configuration within wire-cell-gen that realistically mimics the data dimensions and computational load of DUNE's LArTPC detector modules.
Key Insights and Ideas
- The Kokkos-to-SYCL Pipeline is Smooth: Because the data flow and parallel execution patterns were already optimized for GPUs in the Kokkos version, porting to SYCL was straightforward due to syntax similarities (e.g., mapping
KokkosViewto custom basic array classes). - Atomics are a Performance Battleground: The performance of atomic operations varies drastically between models. OpenMP struggled significantly with the atomic-heavy Scatter-Add kernel, running 5 to 10 times slower than Kokkos.
- Compiler Maturity is the Real Bottleneck: Unlike established native toolchains, portable programming compilers are still under heavy development. No single SYCL compiler could successfully build the code for all target backends (NVIDIA, AMD, and CPU), requiring the authors to mix and match toolchains (Intel/LLVM, OpenSYCL, and oneAPI) depending on the target hardware.
Key Results
The benchmarks were conducted on a single workstation featuring an NVIDIA V100 GPU, an AMD Radeon Pro VII GPU, and a 24-core AMD Ryzen Threadripper CPU.
- Total Runtime: Across all platforms, the total execution time for the entire simulation chain (
DepoTransform) remained within a competitive 20% variance among Kokkos, SYCL, and OpenMP.
- Kernel Breakdown: While FFT performance was nearly identical due to the shared use of vendor-optimized libraries, the Scatter-Add kernel revealed OpenMP's inefficiencies with atomic operations on GPUs.
- Compiler Scaling: On the CPU backend, the choice of SYCL compiler mattered: OpenSYCL scaled better up to 16 threads, but Intel's oneAPI outperformed it at higher thread counts due to its underlying Intel TBB runtime library.
Limitations and Future Work
The primary limitation highlighted is the lack of cross-architecture portability within individual compiler toolchains for SYCL and OpenMP target offloading. Additionally, OpenMP currently lacks native support for certain GPU operations like prefix sums (scans), forcing algorithmic workarounds that can impact performance.
As a next step, the authors plan to investigate C++ Standard Parallelism (stdpar), which integrates parallel execution directly into the language standard, potentially eliminating the need for third-party portable APIs entirely.
Summary updated