arXiv:2609.10368cs.DCSep 2026

Manuscript Offprint

arXiv:2609.10368

Stencil Computation at the Intersection of AI and HPC

Timothee Ewart, Mauricio Araya-Polo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Timothée Ewart and Mauricio Araya-Polo

Abstract—Tensor compilers such as TinyTC and OpenAI Triton were originally developed for AI workloads, but the same tiling and memory abstractions can be applied to implement efficient high-order stencils for scientific and industrial applications. We demonstrate this for an 8th-order, 25-point acoustic stencil with boundary conditions over an a demanding-sized grid, targeting GPGPUs, where we compare the hardware-specialized TinyTC implementation with a portable PyTorch/Triton implementation. The target platforms for evaluation include Intel B70, B580, GPU MAX 1550, NVIDIA A100/RTX6000 Blackwell/H100, and AMD MI325x. For instance, on Battlemage B580 TinyTC reaches 15.6 Gpts/s versus 13.5 Gpts/s for PT/Triton under random initialization, while zero-initialized runs reach up to 35.8 Gpts/s due to hardware memory compression. Using roofline and memory-hierarchy profiling, we show that -as expected- performance is predominantly bandwidth-limited and that compiler-managed L1/LSC caching can effectively replace programmer-managed shared-memory staging for this stencil class. Overall, the results position TinyTC as the performance-oriented path on Intel hardware and PyTorch/Triton as a strong portability/productivity baseline for cross-vendor HPC stencil development.

Index Terms— stencil computation, tile compiler, TinyTC, Triton, GPU, AI, HPC, performance portability

I. INTRODUCTION

Stencil computation is one of the oldest and most enduring patterns in scientific computing. At its core, a stencil kernel updates each point of a grid by combining values from its nearest neighbors, making it the foundation of finite-difference methods for solving partial differential equations (PDEs) [1]. Applications range from seismic wave propagation [2] and fluid dynamics [3] to image processing [4]. Despite its conceptual simplicity, achieving high performance for stencils has remained a moving target for over two decades, constantly reshaped by the evolution of computing hardware (CPU, GPU and now NPU/TPU), and software paradigms and programming models (OpenMP, CUDA, HIP, Tile Compiler, etc.). We retrace this journey in the next paragraphs to contextualize our work and highlight the key developments.

a) Multi-core era (2000s): In the early 2000s, the shift from single-core to multi-core processors [5] forced stencil developers to adopt shared-memory parallelism. Cache-blocking and loop tiling became essential optimizations to exploit spatial and temporal locality across multiple cores [6], [7]. Auto-tuning research [8] demonstrated that algorithmic parameters could be searched automatically for optimal performance rather than hand-tuned.

b) Heterogeneous accelerators (2005–2013): The IBM Cell Broadband Engine (PowerXCell in the HPC variant) was the first mainstream accelerator, (although dedicated accelerators had already existed in the 1980s, such as the MicroVAX matrix accelerator) Introduced in 2005 for the PlayStation 3 and the Roadrunner supercomputer, introduced a radically different model: one general-purpose (PowerPC) core orchestrating eight lean SIMD (128-bit width) engines (SPEs) over a local store (256 KB) with explicit DMA transfers [9], [10]. It was the dawn of accelerator for HPC. Stencil codes had to be restructured around explicit data movement [11] and software-managed memory, foreshadowing the challenges that would later arise on GPU architectures. This period established that stencil performance is driven by memory bandwidth, not compute, a fact reflected in roofline analysis [12].

c) GPU era (2010s–present): General-purpose GPU computing (GPGPU), enabled by CUDA (released 2004-2007) and later OpenCL, brought massive thread-level parallelism to stencil workloads alongside large global memory (up to several GB) directly accessible by threads, unlike the Cell's mandatory local store management. GPUs offer shared memory, a much larger number of registers - 64k per Streaming Processor (H100), and warp-level primitives [13] as optional but powerful latency-hiding optimizations [7], [14]–[16]. The period produced a rich body of work on stencil kernels for NVIDIA GPUs, and later on directive-based portability layers (OpenACC, OpenMP target) that could target both CPU and GPU backends [17].

d) AI accelerates HPC (2020–present): The explosion of deep learning has driven unprecedented investment in GPU hardware and in programming abstractions for tensor operations: CUTLASS [18], XeTLA [19], and tile compilers such as TinyTC [20] for Intel or CuTile [21] for NVIDIA, lower the level of abstraction just enough to expose the hardware tiling and register-file hierarchy without requiring hand-written assembly.

In parallel, OpenAI Triton [22] has emerged as the main de facto tile programming model, offering a tile-based Python DSL with a low barrier to entry; it has been widely adopted in both industry and research. Originally designed for fused transformer kernels, Triton is expressive enough to describe any regular tiled computation and supports multiple GPU backends out of the box. Tensor compilers target primarily AI workloads: matrix multiplications, attention, convolutions, yet stencil computations share the same tiling structure and memory access patterns that make them attractive candidates for evaluation.

Our contribution is to evaluate a TinyTC implementation as

T. Ewart is with Intel Corporation, Santa Clara, USA

M. Araya is with TotalEnergies EP Research and Technology US, Houston, USA the architecture-specialized path and PT/Triton as the portability baseline. Because the stencils are bandwidth-limited, we focus on data reuse and cache behavior, with particular attention to L1/LSC efficiency. A preliminary version of this work was presented as a poster at ISC 2026 [23].

In more concrete terms, the paper makes three linked contributions:

  1. a comparative evaluation of TinyTC and PT/Triton for a 25-point acoustic stencil with boundary conditions;

  2. a memory-centric analysis (throughput, roofline, and cache/DRAM counters) that explains the observed performance trends, including the impact of the B580 memory compression; and

  3. a cross-vendor PT / Triton comparison with different GPUs to characterize portability/performance trade-off.

In general, our goal is to answer whether a specialized tile compiler and a mainstream AI programming model can serve as first-class tools for HPC stencil development.

The remainder of this paper is organized as follows. Section II reviews related work. Section III introduces the hardware platforms and programming models. Section IV describes the stencil implementations. Section V presents the experimental setup. Section VI reports and discusses performance results. Section VII concludes.

References (42)