[Paper Review] Portability: A Necessary Approach for Future Scientific Software
This paper proposes portable parallelization strategies (PPS) to enable scientific software in High Energy Physics (HEP) to run efficiently across diverse hardware—especially GPUs and FPGAs—without rewriting code for each platform. It evaluates existing solutions like Kokkos, SYCL, OpenMP, and C++'s std::execution, concluding that while no single ideal solution exists yet, community-driven standardization and vendor support are essential for future portability and scientific sustainability.
Today's world of scientific software for High Energy Physics (HEP) is powered by x86 code, while the future will be much more reliant on accelerators like GPUs and FPGAs. The portable parallelization strategies (PPS) project of the High Energy Physics Center for Computational Excellence (HEP/CCE) is investigating solutions for portability techniques that will allow the coding of an algorithm once, and the ability to execute it on a variety of hardware products from many vendors, especially including accelerators. We think without these solutions, the scientific success of our experiments and endeavors is in danger, as software development could be expert driven and costly to be able to run on available hardware infrastructure. We think the best solution for the community would be an extension to the C++ standard with a very low entry bar for users, supporting all hardware forms and vendors. We are very far from that ideal though. We argue that in the future, as a community, we need to request and work on portability solutions and strive to reach this ideal.
Motivation & Objective
- Address the growing challenge of hardware heterogeneity in HEP computing, where x86-only code is no longer sufficient due to the rise of GPUs, FPGAs, and SoCs.
- Overcome the inefficiency and high cost of maintaining multiple hardware-specific codebases for large-scale HEP experiments with millions of lines of code.
- Evaluate and compare existing portable programming models to identify viable, scalable solutions for HEP workloads.
- Provide actionable recommendations to HEP experiments and the broader scientific community on adopting portable parallelization technologies.
- Advocate for a future C++ standard extension that enables low-barrier, portable, and portable-first scientific computing across all hardware vendors and architectures.
Proposed method
- Evaluate five key portable programming models: Kokkos, SYCL, Alpaka, OpenMP/OpenACC, and C++'s std::execution::parallel.
- Implement representative HEP workloads from real experiments (e.g., CMS, DUNE, ATLAS, ACTS) on each portability layer to assess practical feasibility.
- Use a standardized set of metrics focused on developer experience, performance, portability, and ecosystem maturity to compare technologies.
- Conduct hands-on implementation of use cases such as pixel tracking, space point formation, and fast calorimeter simulation across different backends.
- Leverage existing compiler support from major vendors (NVIDIA, AMD, Intel, LLVM, GNU) to test real-world performance and compatibility.
- Assess both directive-based (OpenMP) and language-based (SYCL, Kokkos) models, including their support for asynchronous execution, memory management, and GPU offloading.
Experimental results
Research questions
- RQ1Can existing portable programming models like OpenMP, SYCL, and Kokkos enable HEP workloads to be compiled and executed efficiently across diverse hardware platforms including GPUs and FPGAs?
- RQ2What are the key trade-offs between developer productivity, performance portability, and ecosystem maturity across different portable parallelization solutions?
- RQ3How do directive-based models like OpenMP compare to language-based models like SYCL and Kokkos in terms of ease of use and performance for HEP-specific workloads?
- RQ4To what extent do current compilers and runtime systems support the required features (e.g., asynchronous kernels, memory spaces, interop with vendor libraries) for production HEP workloads?
- RQ5What role can a future C++ standard extension play in unifying portable HEP software development and reducing vendor lock-in?
Key findings
- The PPS project found that while no single portable solution is yet ideal for all HEP use cases, several technologies—including OpenMP, SYCL, and Kokkos—demonstrate strong feasibility for cross-architecture execution.
- OpenMP target offloading shows promising support for GPU acceleration, with major HPC vendors actively developing compilers and runtime systems for it.
- C++'s std::execution::parallel (std::par) offers a low entry barrier for developers but currently suffers from immature compiler support and performance limitations, especially on GPU backends.
- Kokkos and Alpaka provide strong abstraction layers for heterogeneous execution, though they require deeper integration and expertise compared to directive-based models.
- SYCL and OpenMP show strong potential due to their high-level abstractions and growing industry backing, especially from Intel, NVIDIA, and AMD.
- Despite progress, performance and portability remain inconsistent across compilers and hardware, and the lack of a unified, standardized, and widely adopted solution remains a major barrier to scientific software sustainability.
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.