arXiv:2610.08238cs.DCOct 2026

Manuscript Offprint

arXiv:2610.08238

GPU Acceleration of Awkward Arrays: Using Python cuda.compute

Maksym Naumchyk, Ianna Osborne

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Maksym Naumchyk 1^{1} ∗^{*} and Ianna Osborne 1^{1} ∗∗^{**}

1^{1}Princeton University

Abstract. Awkward Array is a widely used library in high-energy physics (HEP) for representing and manipulating nested, variable-length data in Python. Previous CHEP contributions have explored GPU acceleration for Awkward Array, demonstrating the feasibility and performance benefits of CUDA-based backend while also identifying limitations related to irregular data access, fine-grained kernel launches, and composability of operations. In this contribution, we present recent developments that build directly on these earlier efforts by introducing a CUDA execution model for Awkward Array based on the Python CUDA Core Compute Libraries (CCCL).

Using CCCL, we eliminate the need for custom CUDA kernels and can instead use a high-level Python interface. The CCCL-based approach also enables fusion of multiple Awkward operations into a reduced number of CUDA kernels, addressing kernel launch overhead observed in earlier GPU implementations. Lazy execution allows expression graphs to be constructed and optimized prior to kernel generation, improving performance for analysis workflows involving jagged arrays, combinatorial operations, and reductions. In contrast to earlier approaches, this design also emphasizes extensibility, allowing user-defined Python code to be incorporated into GPU execution paths with minimal boilerplate and without breaking existing analysis semantics.

We present performance studies that demonstrate improvements over previously reported eager GPU execution strategies for representative HEP analysis patterns. These developments extend the GPU capabilities of Awkward Array toward a more composable and sustainable backend, aligned with the needs of Python-based analysis at the HL-LHC and beyond.

We thank the NVIDIA team for support and collaboration in integrating CCCL into Awkward, developing CUDA kernels and providing guidance on GPU optimization strategies. Their contributions are gratefully acknowledged.

1 Prologue

Each of the different Awkward functions (sum, mean, etc.) consists of one or multiple kernels. Historically, these kernels were hand-written directly in CUDA C++. However, this implementation had its own drawbacks: raw CUDA is hard to write, hard to optimise, and hard to maintain. So the idea was to replace the existing kernels with cuda.compute — a Python interface to CUDA's parallel algorithms. This approach would greatly reduce the codebase.

*e-mail: maxymnaumchyk@gmail.com

**e-mail: Ianna.Osborne@cern.ch awkward_array = ak.Array([[0.0, 1.1, 2.2], [], [3.3, 4.4], [5.5], [6.6, 7.7, 8.8, 9.9]])

awkward_array

[[0, 1.1, 2.2], ], [3.3, 4.4], [5.5], [6.6, 7.7, 8.8, 9.9]]

backend: cpu nbytes: 128 B type: 5 * var * float64

Figure 1. Using non-rectangular arrays with Awkward

and make it much easier to maintain and develop new kernels. It would even bring performance improvements coming from using optimised cuda.compute algorithms and reducing kernel launches. The idea took shape at the ACAT workshop [1], where the limitations of the existing approach became the starting point for this work.

The next two sections introduce Awkward itself and CUDA kernels in more detail. If you are already familiar with these concepts, jump straight to Section 4.