Abstract: The evolution of the computing landscape has resulted in the proliferation of diverse hardware architectures, with different flavors of GPUs and other compute accelerators becoming more widely available. To facilitate the efficient use of these architectures in a heterogeneous computing environment, several programming models are available to enable portability and performance across different computing systems, such as Kokkos, SYCL, OpenMP and others. As part of the High Energy Physics Center for Computational Excellence (HEP-CCE) project, we investigate if and how these different programming models may be suitable for experimental HEP workflows through a few representative use cases. One of such use cases is the Liquid Argon Time Projection Chamber (LArTPC) simulation which is essential for LArTPC detector design, validation and data analysis. Following up on our previous investigations of using Kokkos to port LArTPC simulation in the Wire-Cell Toolkit (WCT) to GPUs, we have explored OpenMP and SYCL as potential portable programming models for WCT, with the goal to make diverse computing resources accessible to the LArTPC simulations. In this work, we describe how we utilize relevant features of OpenMP and SYCL for the LArTPC simulation module in WCT. We also show performance benchmark results on multi-core CPUs, NVIDIA and AMD GPUs for both the OpenMP and the SYCL implementations. Comparisons with different compilers will also be given where appropriate.
Introduction
The next generation of high-energy physics (HEP) experiments, such as the Deep Underground Neutrino Experiment (DUNE), will produce staggering amounts of data—estimated at 30 petabytes per year. Processing this volume requires moving beyond traditional CPU-only computing to heterogeneous environments that leverage hardware accelerators like GPUs from various vendors including NVIDIA, AMD, and Intel.
The primary challenge is portability. Writing separate codebases for every hardware-specific API (like CUDA for NVIDIA or HIP for AMD) is a maintenance burden for scientific collaborations. This study investigates whether portable programming models like SYCL and OpenMP can provide a single codebase that runs efficiently across different hardware without sacrificing the performance needed for complex LArTPC simulations.
Methodology
The research focused on the Wire-Cell Toolkit (WCT), specifically the standalone simulation tool wire-cell-gen. The simulation consists of three primary computational phases:
- Rasterization: Binning electron groups into "patches" (heavy floating-point operations).
- Scatter-Add: Stacking patches onto a large grid (requires atomic add operations).
- Convolution: Applying detector response using Fast Fourier Transforms (FFT).
The team ported an existing Kokkos-based implementation to SYCL and OpenMP. Key technical strategies included developing custom wrappers to call hardware-specific libraries (like cuFFT for NVIDIA and rocFFT for AMD) through a common interface and manual memory management in OpenMP using #pragma omp target data map to minimize overhead.
Performance Analysis
Overall Performance and Portability
On the same hardware platform, the total running times for the entire simulation were comparable across all three models (Kokkos, SYCL, and OpenMP), generally staying within a 20% difference. This demonstrates that both SYCL and OpenMP are viable "write-once, run-anywhere" solutions for this class of HEP simulation.
The Atomic Bottleneck
While overall performance was similar, specific kernels revealed significant disparities. The performance of the Scatter-Add kernel, which relies heavily on atomic operations, varied wildly. Kokkos outperformed OpenMP by 5–10x in this area, highlighting that the efficiency of atomic operation handling in a portable model can be a dealbreaker for specific scientific kernels.
Compiler and Ecosystem Maturity
A major takeaway was the inconsistency of compiler support. No single SYCL compiler could successfully build the code for all backends (NVIDIA, AMD, and CPU) simultaneously, requiring a fragmented approach. Furthermore, on CPUs, the choice of compiler mattered; OpenSYCL showed better scaling up to 16 threads, while Intel oneAPI performed better at higher thread counts (up to 48).
Conclusion and Future Work
While SYCL and OpenMP successfully achieved portability, the maturity of their ecosystems remains a hurdle. Future work will involve investigating stdpar (C++ Standard Parallelism) for potentially cleaner portability and further optimizing the OpenMP Scatter-Add kernel to close the performance gap with Kokkos.
Summary updated