arXiv:2611.06079cs.PLNov 2026

Manuscript Offprint

arXiv:2611.06079

TauLang: A Language and Compiler for Space-Time Programming on Statically Scheduled Accelerators

Xuxiao Yang, Junchi Wu, Feiyang Wu, Zhuoran Li, Shuo Tao, Dongyi Fan, Yiming Zhang, Keqin Luo, Xingrui Gao, Xuehai Qian, Youwei Zhuo

Abstract

Statically scheduled accelerators such as Groq's Tensor Streaming Processor (TSP) achieve low-latency large language model inference by stripping dynamic synchronization hardware from the chip. With no caches, arbiters, or hardware schedulers, the compiler must fix the exact slice and issue cycle of every operation, so when an operation runs is a condition for correctness. Existing kernel languages cannot target such machines because they rely on hardware to resolve cycle timing and instead encode schedules implicitly in code structure.

We present TauLang, a kernel language and compiler that makes time a first-class citizen of the program. The programmer schedules operations, loops, and composed kernels with parameterized explicit times, so exploring schedules means changing parameter values rather than rewriting code. TauLang validates explicit times algebraically in TauIR, its timed intermediate representation. It then solves tensor placement and cycle scheduling jointly in an integer linear program, using explicit times to group connected operations into timing clusters that prune the search space. On a cycle-accurate model of a TSP-like machine, joint search achieves a 1.40× latency speedup across ten kernels over a space-first flow. A few explicit time pins keep latency within one cycle of the untimed schedules and scale joint search to 1,636 GEMM blocks, whereas untimed search finds no schedule at 32.

1 Introduction

Statically scheduled accelerators, pioneered by Groq's Tensor Streaming Processor (TSP) [1, 2], have emerged as a compelling architecture for low-latency large language model inference. Reflecting this demand for fast token generation, Nvidia recently acquired Groq's assets for $20 billion [9] and introduced a rack-scale system built on the TSP execution model [3]. To achieve such low, deterministic latency, this execution model strips out the dynamic control hardware of conventional accelerators, eliminating caches, local register files, interconnect arbiters, and hardware schedulers [36].

However, the simplicity of the hardware makes compilation harder. With no stall signals or runtime handshakes, instructions flow vertically up each slice while data streams

Figure

Figure 1. (a) Instructions flow vertically while data streams horizontally across slices. (b) Staggered loads make data a0,b0a_0, b_0 and the add instruction meet at VXM in the same cycle.

move horizontally across functional units at a fixed rate of one slice per cycle, without waiting (Figure 1a). Thus, the compiler must statically decide the exact slice and issue cycle of every operation so that each instruction and its input streams meet at the target unit in the exact same cycle (Figure 1b), while avoiding conflicts on shared stream register (SR) tracks and memory banks. Because the hardware detects no timing or resource violations, missing a rendezvous by even one cycle or slice silently produces wrong results, which makes when an operation runs a condition for correctness rather than a performance parameter. Moreover, a single chip contains dozens of slices, so the compiler must coordinate these cycle-exact schedules across all slices and functional units simultaneously.

Existing approaches to this challenge fall between two extremes. On one hand, expert engineers can hand-craft low-level instruction schedules [1, 36], but doing so demands painstaking cycle-level control and months of effort. For example, after Groq initially brought up Llama-2 70B at 100 tokens/s, its engineers spent three months optimizing low-level schedules on the same hardware to reach 300 tokens/s [13]. On the other hand, a compiler that schedules high-level code automatically faces a vast joint space of slice placements and issue cycles. Fixing placement first shrinks this space but yields slower schedules, whereas in our experiments, an unconstrained solver finds no schedule for a 32-block GEMM within the time budget. A natural middle ground is a kernel language that lets the programmer express high-level scheduling decisions while the compiler checks and completes the low-level schedule.

Xuxiao Yang, Junchi Wu, Feiyang Wu, Dongyi Fan, Yiming Zhang, Keqin Luo, Xingrui Gao, Xuehai Qian, and Youwei Zhuo

However, neither GPU kernel languages [37, 39] nor spatial compilers [23–25] can serve as this middle ground, because they assume that hardware synchronizes timing at runtime. Even compilers for spatial meshes and coarse-grained reconfigurable arrays (CGRAs) that plan placement and modulo cycles statically [23–25] rely on scratchpads, FIFOs, and router flow control to buffer early arrivals [12, 34], so a one-cycle mismatch costs only throughput. Under this assumption, existing kernel languages are time-blind and instead express schedules indirectly through code structure, such as pipeline stage counts and explicit barriers (Figure 2). This structural approach neither expresses cycle-exact rendezvous nor separates the schedule from the abstract syntax tree (AST), so the programmer must rewrite the kernel to change its schedule.

Our key insight is to decouple a program's schedule from its code structure by making time a first-class citizen of the kernel language. Because cycle timing determines correctness on a statically scheduled accelerator, the language should let the programmer express cycle times directly and the compiler check them statically (Figure 3). Programmers write explicit times as affine cycle expressions over loop indices and kernel parameters, and pinning a kernel call to an invocation time offsets every explicit time in the callee. Exploring schedules across a composed program thus requires only changing parameter values rather than rewriting the kernel. Pins also keep the compiler's joint search over the remaining schedule tractable. Because streams advance one slice per cycle, pinning the cycle gap between a stream's producer and consumer fixes the hop count between their slices, which prunes the memory placements that the solver must explore.

We present TauLang, a kernel language and compiler for statically scheduled accelerators. TauLang extends a tile-style Python DSL with explicit times relative to symbolic times, which mark the start of the current kernel (tau. T) or the start or end of an operation, loop, or call (tau. start, tau. end). A pin (. at) fixes the issue time of an operation or the invocation time of a call, while tau. domain maps each loop iteration to its start cycle. The compiler lowers explicit times into TauIR attributes in MLIR [21] and runs affine time validation to catch timing conflicts algebraically before search. It then solves spatial placement and cycle scheduling jointly as an integer linear program (ILP), using stream dependencies and explicit times to group connected operations into timing clusters that prune the search.

We evaluate TauLang on a TSP-like machine using a cycle-accurate simulator validated against our SystemVerilog RTL implementation. Across ten kernels from BLAS, PolyBench, ResNet, and Transformer layers at three sizes each, joint search achieves a 1.40× geometric-mean latency speedup (up to 2.22×) over the space-first flow, which fixes placement before scheduling greedily. Adding one to three pins per kernel matches untimed latency within one cycle and cuts

compile time by 1.72×. Pins also scale joint search to 1,636 GEMM blocks and 128 residual blocks, whereas untimed search finds no schedule at 32 and 8. Sweeping two schedule parameters of a flow-matching kernel yields eight Pareto-optimal schedules among those compiled, which trade up to 237 cycles of first-item latency for 498 cycles of whole-output time.

This paper makes three contributions.

  • A time-first kernel language. We design TauLang, to our knowledge the first kernel language that treats cycle time as a first-class, parameterized, and composable construct (§4).
  • A timed intermediate representation. We define TauIR, an IR that carries symbolic timing attributes and validates them algebraically before scheduling (§5).
  • Time-guided joint space-time scheduling. We formulate placement and scheduling as a joint ILP that uses explicit times to group operations into timing clusters and prune the search space (§6).

References (11)