Frontiers in Big Data (Oct 2024)

Exploring code portability solutions for HEP with a particle tracking test code

  • Hammad Ather,
  • Sophie Berkman,
  • Giuseppe Cerati,
  • Matti J. Kortelainen,
  • Ka Hei Martin Kwok,
  • Steven Lantz,
  • Seyong Lee,
  • Boyana Norris,
  • Michael Reid,
  • Allison Reinsvold Hall,
  • Daniel Riley,
  • Alexei Strelchenko,
  • Cong Wang,
  • Cong Wang

DOI
https://doi.org/10.3389/fdata.2024.1485344
Journal volume & issue
Vol. 7

Abstract

Read online

Traditionally, high energy physics (HEP) experiments have relied on x86 CPUs for the majority of their significant computing needs. As the field looks ahead to the next generation of experiments such as DUNE and the High-Luminosity LHC, the computing demands are expected to increase dramatically. To cope with this increase, it will be necessary to take advantage of all available computing resources, including GPUs from different vendors. A broad landscape of code portability tools—including compiler pragma-based approaches, abstraction libraries, and other tools—allow the same source code to run efficiently on multiple architectures. In this paper, we use a test code taken from a HEP tracking algorithm to compare the performance and experience of implementing different portability solutions. While in several cases portable implementations perform close to the reference code version, we find that the performance varies significantly depending on the details of the implementation. Achieving optimal performance is not easy, even for relatively simple applications such as the test codes considered in this work. Several factors can affect the performance, such as the choice of the memory layout, the memory pinning strategy, and the compiler used. The compilers and tools are being actively developed, so future developments may be critical for their deployment in HEP experiments.

Keywords