betaFeedback

WorksComputer Science

Cyclotron: A Recurrence Language for Expressing Interprocessor Communication

Abstract

We present Cyclotron, a compiler that expresses streaming dataflow algorithms using recurrence equations, which are then compiled to distributed topologies of interlinked processors. Our compiler lowers a language of recurrences over logical iteration spaces into per-processor programs of sends, receives, and computations. In these recurrences, data accesses are not limited to external accesses to memory; data can live separately on the iteration space itself, allowing internal points to communicate values directly with other points. Users specify this communication directly in the recurrence language, which allows them to express various communication patterns such as a nearest-neighbor systolic exchange, a one-to-all broadcast, a bidirectional split ring, or an asymmetric and piecewise broadcast pattern, which are often not supported by standard distributed linear algebra libraries. These recurrences describe the algorithm and communication independently of how they map onto the hardware. A programmer then chooses which dimensions execute across processors and which execute over time, without rewriting the entire program. Users only specify data dependencies across the iteration space, and the compiler safely generates a program, per process, with correct placement of both communication and computational operators according to the chosen space–time mapping. We evaluate distributed matrix multiplication, TRSM, Cholesky, and fused Cholesky–TRSM on up to 16 CPU nodes and 16 GPUs, comparing against ScaLAPACK, SLATE, and cuSolverMp. Cyclotron is competitive with and often outperforms these hand-optimized libraries; for Cholesky, the best communication strategy changes with problem size and architecture.

Introduction

Generations of architectural improvements have widened the gap between the cost of data movement and the cost of computation. Performance optimization is now dominated by minimizing memory traffic and network communication on distributed architectures. Extracting performance from such hardware is largely a matter of orchestrating how data moves through that fabric: laterally between PEs, and temporally as values are retained in fast memory across steps.

Yet the dominant abstractions for programming these machines do not represent data movement beyond memory loads/stores. In tensor algebra notation, loop-based IRs, and polyhedral representations, every data access is a tensor access—logical reads from or writes to memory locations. Such a program says what value each statement consumes, but not how or where that value travels between processors or across time. The movement is left implicit, to be recovered by dependence analysis and then realized by a lowering pass.

In computational problems where communication is a primary bottleneck, such as in distributed linear algebra (e.g., matrix multiplication), tensor algebra, and recurrences, the best communication policy can vary with input size, tile size, interconnect, and processor architecture. Yet standard distributed libraries like ScaLAPACK [7] or SLATE [10] either hard-code communication policies or expose only a small set of predefined options. Consequently, the best communication schedule for a particular problem and architecture may not be available to the programmer.

Compiler frameworks avoid pitfalls of writing distributed code by hand, which is error-prone and can lead to indefinite hangs from mismatched or incorrectly ordered communication, while also being difficult to optimize (e.g., overlapping communication with computation). Polyhedral frameworks have made important steps forward in modeling relationships between iteration spaces and memory accesses. Existing polyhedral frameworks, like AutoSA [37] for systolic-array synthesis and AlphaZ for distributed-memory code generation, [39] lower dependencies into nearest-neighbor transfers; both therefore effectively commit to a systolic realization of communication. As a result, alternative realizations of the same logical dependence, such as a one-to-all broadcast, a tree-broadcast, or heterogeneous combinations of broadcast and forwarding, are not supported.

This limitation stems from what the user program leaves unspecified. With polyhedral frameworks, users write equations or loops over array accesses, and the compiler analyses the program to identify where communication should occur. There are typically many ways to realize data movement, but without user input the compiler must choose among them. For example, AutoSA and AlphaZ only generate code where communication is limited to between neighboring PEs. This can leave performance on the table when a different communication strategy better matches the problem size or target architecture. Stellar [12], a framework for spatial accelerator design, allows users to specify dataflow and lets iteration-space points receive data from neighbors, supporting systolic patterns, but does not generalize beyond them.

This paper presents the Cyclotron compiler that makes the communication schedule a first-class part of the input program. The program can express many different communication patterns as recurrence equations. These include systolic exchanges, one-to-all broadcast, tree-broadcast, bidirectional split rings, or asymmetric, piecewise combination of communication policies, in which different subdomains of a program and processor grid carry different communication policies. A user can specify that a data tile travel via nearest-neighbor hops in one part of the processor grid, via a tree broadcast in other parts, and bidirectionally in another.

In Cyclotron, the programmer writes computation as a system of recurrences that can index into tensors that live on the iteration space in addition to tensors that live in memory, thus controlling data movement. Figure 1 illustrates the 3D iteration space of a matrix multiply, contrasting a program where data is accessed exclusively from tensors with two different programs where data is also obtained from points in the iteration space. What differs is how each value is obtained: directly from the tensor, from a neighboring iteration-space point, or from a boundary point via broadcasts. In Cyclotron, a value on the iteration space is named not only by which tensor element it is (e.g., AijA_{ij}) but by the point in the iteration space at which it lives, written (i,j,k)A(i,j,k)A. Movement, like the systolic transfer (i,j,k)A←(i,j−1,k)A(i,j,k)A \leftarrow(i,j-1,k)A, is expressed in the same coordinate system as computation: a recurrence relating a value at one point to another point is a data movement. A separate per-dimension annotation declares whether each dimension is spatial (movement between PEs) or temporal (retention across steps). Data movement is not limited to nearest neighbors, and because the recurrence is written independently of this annotation, the same program can be used to generate different spatial mappings.

Three spatial matrix multiplies

Figure 1. Three spatial matrix multiplies. Left: each point reads operands AikA_{ik} and BkjB_{kj} directly from memory. Middle: each operand is loaded once at a boundary face, and interior points receive AA and BB systolically from neighbors. Right: each point receives its data directly from boundaries.

The user’s input recurrences are unordered. The ordering of compute and communication operations depends on which dimensions are mapped in space and time. Cyclotron’s dependency algorithm uses this mapping to derive correct orderings, relieving users of the need to manually sequence such operations and avoiding indefinite waits caused by incorrect communication ordering.

These recurrences are compiled to distributed code through a fixed pipeline: a space–time mapping folds the iteration space and inserts a temporal loop. Our dependency-management algorithm resolves data dependencies into coupled sends and receives. Synchronization-aware control flow is inserted according to the target protocol. A final pass can apply a block-cyclic decomposition and deduplicate communication.

Cyclotron lets programmers explore communication strategies with minimal program changes. The resulting code is competitive with, and often outperforms, expert-tuned libraries. We make the following contributions:

  • A recurrence-based programming model where communication is a first-class programmable concern, separate from computation and space–time mapping, enabling programmers to express and compose systolic, broadcast, ring, tree, and heterogeneous piecewise communication strategies.

  • A dependency-management algorithm that uses the chosen space–time mapping to order computation and communication from unordered recurrences

  • A complete compilation pipeline integrating the dependency algorithm with transformations that handle synchronization, block-cyclic decomposition and communication deduplication, generating efficient distributed programs.

By exploring different communication schedules, we demonstrate 1.7–1.8× over ScaLAPACK for matrix multiply. For Cholesky on up to 16 CPU nodes, we observe 1.34–1.68× speedup over ScaLAPACK on CPUs and 1.01–1.24× speedup over SLATE on GPUs (which uses CPU-side communication), and 1.12–1.28× speedup over CuSolverMp, Nvidia’s optimized multi-GPU vendor library, when only using direct GPU-GPU communication. We demonstrate benefits of simultaneously composing different space–time mappings and how Cyclotron naturally fuses kernels.

Motivating Example

We use distributed, blocked Cholesky decomposition as a motivating example. Cholesky factors a symmetric positive-definite matrix into a triangular factor and its transpose. In a blocked implementation, processors operate on matrix tiles using four dense BLAS/LAPACK kernels: POTRF, TRSM,

SYRK, and GEMM. Different processors execute different sequences of these operations depending on their position in the processor grid and the current step of the factorization. Moreover, these operations depend on values produced elsewhere in the grid, and those dependences can be realized using different communication strategies; communication is not simply a uniform pattern of nearest-neighbor shifts. The computation is load–imbalanced, in which critical paths occurring in certain portions of the grid asymmetrically affect work on downstream processors.

Figure 2 shows two loop-based formulations of blocked Cholesky. Even in the serial, non-distributed case, the loop form is coupled to the dependencies among the four kernels. In other words, changing the loop ordering requires more than merely permuting loop headers, as one can for perfectly nested computation such as matrix multiplication. It changes loop bounds, the number and placement of inner loops, the ordering of kernel calls, and their indexing. In loop–based spatial frameworks, loop dimensions/nesting–order are also used to determine which parts of the computation execute across processors and which execute over time. Changing the space–time mapping can therefore require restructuring the program rather than simply changing a mapping decision.

Two Cholesky loop nests and a distributed lowering

Figure 2. Two Cholesky loop nests (a,b) and a distributed lowering of the up-looking nest (c). The order of the compute statements differs between the two sequential variants, as do the number of inner loops and tensor indexing. The distributed nest (c) adds send/recv statements. Recv XX: (r,c)(r,c)/Send XX: (r,c)(r,c) name the peer.

Distributing the computation makes the control flow more complex (Figure 2c). The programmer must place sends and

receives, add processor- and time-dependent branches, construct fan-out send loops, and ensure that every receive has a matching send. Incorrect send/receive pairing can result in indefinite hangs. Changing the communication strategy may require restructuring this control flow even though the underlying computation is unchanged.

Cyclotron instead separates these concerns. The computation is written once in a loopless recurrence form. Figure 3 shows a Cyclotron recurrence specification of a Cholesky decomposition. It generates the exact code corresponding to Figure 2c, while the space–time mapping is specified separately. Computation and communication are both expressed as recurrences over iteration-space points, so changing the communication strategy (e.g., from systolic forwarding to broadcast or a tree) changes only the communication recurrences, not the computation. Figure 3b shows the same communication recurrences rewritten with a different communication strategy. The communication of LguL_{gu} and LcL_c now uses hierarchical doubling tree-broadcasts. The communication of LglL_{gl} is now a modified increasing ring, where it initially broadcasts to the three nearest neighbors to its right, with the third neighbor and the remaining neighbors communicating

ConstInt nTensor tIndexVar vIndexi::=v∣n∣v+nTensorAccessta::=ti1,…,idIterAccessia::=(i1,…,id)tExpre::=ta∣ia∣const∣func(e1,…,en)∣e+e∣e e∣⋯Recurrencer::=ia←eConstraintc::=i<i∣i≤i∣i=i∣i≥i∣i>iStmts::=r∣r c∗Programp::=s∣s,p\begin{aligned} \mathrm{ConstInt}\ n \qquad\mathrm{Tensor}\ t \qquad\mathrm{IndexVar}\ v\\ \mathrm{Index}\quad i &::= v \mid n \mid v+n\\ \mathrm{TensorAccess}\quad ta &::= t_{i_1,\ldots,i_d}\\ \mathrm{IterAccess}\quad ia &::= (i_1,\ldots,i_d)_t\\ \mathrm{Expr}\quad e &::= ta \mid ia \mid\mathrm{const} \mid\mathrm{func}(e_1,\ldots,e_n)\\ &\mid e+e \mid e\ e \mid\cdots\\ \mathrm{Recurrence}\quad r &::= ia \leftarrow e\\ \mathrm{Constraint}\quad c &::= i<i \mid i\leq i \mid i=i \mid i\geq i \mid i>i\\ \mathrm{Stmt}\quad s &::= r \mid r\ c^{*}\\ \mathrm{Program}\quad p &::= s \mid s,p \end{aligned}

systolically. In the equivalent per-processor imperative program, this four-line change more than doubles the code size of the program in Figure 2c, because separate control flow is required for the modified ring (a hybrid systolic-broadcast strategy) and for the doubling tree.

Finally, these recurrence specifications are unordered. Given a space–time mapping and target communication protocol, Cyclotron’s dependency-management algorithm determines a valid ordering of computation, sends, and receives.

Notation

Recurrences and tensor algebra have traditionally been defined over indexed tensors [15, 33, 34, 36]. Cyclotron augments this with recurrences over iteration spaces. In conventional recurrence and tensor-algebra equations, each tensor access (AijA_{ij}, or A[i][j]) denotes a logical access to a memory hierarchy. This model maps well to von Neumann programs on a single processor, but lacks any mechanism for describing data that propagates through time or across processors as every data reference is a tensor access.

Cyclotron’s notation describes both computation and communication. First, computations are defined as recurrences over an iteration space (§ 3.1). This way, data may live on the iteration space itself, in addition to living in external tensors. Second, communication patterns are specified in that same language (§ 3.3), as a transfer between two points in the iteration space: a systolic relay, a broadcast, or a piecewise hybrid of the two is just another recurrence, distinguished only by the shape of its coordinate expressions. Figure 1 illustrates this dichotomy of accessing data from memory versus the iteration space.

Defining Recurrences over Iteration Spaces

In a spatial program, data moves laterally between processors and can be retained in fast memory across time. If processors are assigned distinct portions of a program’s iteration space, then dataflow across the iteration space corresponds directly to dataflow between processors, or to dataflow across time.

(i,0,k)A←Aikinject A(0,j,k)B←Bkjinject B(i,j,0)C←0init. accumulator(i,j,k)A←(i,j−1,k)Areceive A along j(i,j,k)B←(i−1,j,k)Breceive B along i(i,j,k)C←(i,j,k)A(i,j,k)B+(i,j,k−1)Cmultiply–accum.\begin{aligned} (i,0,k)_A &\leftarrow A_{ik} && \text{inject }A\\ (0,j,k)_B &\leftarrow B_{kj} && \text{inject }B\\ (i,j,0)_C &\leftarrow0 && \text{init. accumulator}\\ (i,j,k)_A &\leftarrow(i,j-1,k)_A && \text{receive A along }j\\ (i,j,k)_B &\leftarrow(i-1,j,k)_B && \text{receive B along }i\\ (i,j,k)_C &\leftarrow(i,j,k)_A(i,j,k)_B+(i,j,k-1)_C && \text{multiply–accum.} \end{aligned}

Cyclotron makes data movement across an iteration space expressible by allowing tensors to be stored on the iteration space, in addition to in memory. Figure 4 shows Cyclotron’s grammar. Given a three-tensor AA that lives on a three-dimensional iteration space (i,j,k)(i,j,k), we write (i,j,k)A(i,j,k)_A to denote the value/tile of AA at a point (i,j,k)(i,j,k) of the iteration space. Figure 5 uses this notation to give the complete dataflow of a systolic matrix multiply in six lines. Movement is encoded by coordinate differences. For example, (i,j,k)A←(i,j−1,k)A(i,j,k)_A \leftarrow(i,j-1,k)_A propagates the AA one step along the second dimension jj. This step corresponds to data moving to a neighboring processor if the user declares that dimension to be spatial, or to data being retained on the same processor for the next time step if the user declares the dimension temporal. Thus, the same recurrence specification can support different space–time mappings without changing the equations. In the classical Cannon’s algorithm, ii and jj are spatial and kk temporal. This yields systolic movement of AA and BB and a temporal accumulator for CC, which is retained in a register from one timestep to another.

Input grammar

Figure 4. Input grammar. func\mathit{func} does not support recursion.

Cyclotron specification of a systolic matrix multiplication

Figure 5. Cyclotron specification of a systolic matrix multiplication.

Computation on the iteration space is expressed with functions over iteration-space values. For example, Figure 5 defines matrix multiply-accumulate as (i,j,k)C=(i,j,k)A(i,j,k)B+(i,j,k−1)C(i,j,k)_C=(i,j,k)_A(i,j,k)_B+(i,j,k-1)_C. Because movement is carried in the same coordinate system as computation, it is written in the equations rather than recovered by a separate dependence analysis. In loop-based dataflow languages every data access is a tensor access, so the language can detect that a value must be broadcast across the iteration space but has no notion of how or where the data moves; in Cyclotron the movement and the computation it serves are expressed in one grammar.

Cyclotron specifications are loop-free and unordered. All iteration-space indices are in scope at every recurrence, and no loop order is imposed. The loop-order coupling dissected in Section 2 (e.g. the ijkijk vs kijkij Cholesky loops) is not relevant with recurrences. A separate space–time map linearizes the dependence relation, while remaining separate from the equations to avoid overspecializing programs and to promote program reuse.

Iteration Space Boundaries and Subspaces

Different operations may be defined on subspaces or partitions of the iteration space. Cyclotron supports this through substitutions, which fix indices to constants or other index variables, and constraints, which specify equalities or inequalities over the indexing variables.

Substitutions describe lower-dimensional subspaces of an iteration space. In Figure 5, matrix-multiply operations (i.e., GEMM) are defined over the full rectangular iteration space (i,j,k)(i,j,k), while boundary operations are defined on lower-dimensional faces. For example, (i,0,k)A←Aik(i,0,k)A \leftarrow A_{ik} loads tiles from memory where data enters the iteration space, and (i,j,0)C←0(i,j,0)C \leftarrow0 seeds the accumulator on the face k=0k=0.

Constraints describe subspaces or partitions of a rectangular iteration space. The Cholesky decomposition’s inner iteration space is a 3D triangular pyramid defined by i>j>ki>j>k. Figure 3 shows that a global default constraint can apply to each recurrence, while individual recurrences may specify their own constraints to override it.

One Cholesky dataflow in Cyclotron

Figure 3. One Cholesky dataflow in Cyclotron, devoid of the statement ordering, inner-loop nesting, and re-indexing required across the variants in Figure 2. Panel (a) is the broadcast/systolic spelling: with ii and jj spatial and kk temporal it lowers to Figure 2c. Panel (b) keeps every compute recurrence and rewrites only LglL_{gl}, LguL_{gu}, and LcL_c—a depth-3 modified ring along the row and doubling trees down the column.

Substitutions may also involve other index variables. Cholesky, for example, defines operations on diagonal subspaces such as i=j=ki=j=k, which form a 1D subset of the 3D iteration space in Figure 2c. We express these by gimbal-locking dimensions: substituting one index variable for another, as in (j,j,j)(j,j,j). Each index variable has a native dimension. Here ii is the first, jj the second, and kk the third. Substituting an index in a non-native dimension equates the indices and locks the dimensions together. Thus (i,i,i)(i,i,i), (j,j,j)(j,j,j), and (k,k,k)(k,k,k) all denote the same diagonal subspace. This differs from loop-based forms, where the specific diagonal index used, such as LkkL_{kk} versus LiiL_{ii}, can depend on the surrounding loop structure.

Substitutions, like per-recurrence constraints, override the default constraint when they conflict. If multiple recurrences match a point, the most specific subspace (the one with the most substitutions) takes precedence. For example, (0,2,2)(0,2,2) matches a recurrence defined on (i,j,j)(i,j,j) over one defined on (i,j,k)(i,j,k). Ties are undefined.

Specifying Communication

Because movement is written as coordinate offsets, a communication pattern is determined by the recurrence’s coordinate expressions: which coordinates carry offsets, and whether the source point is named relative to the consumer or absolutely. Figure 6 illustrates four example shapes over an iteration space (i,j)(i,j) with ii spatial and jj temporal. We describe four common patterns.

Four sample expressible Cyclotron communication patterns

Figure 6. Four sample expressible Cyclotron communication patterns, defined over (i,j)(i,j) with ii spatial and jj temporal.

Systolic relay. A relative source such as

(i,j)X←(i−1,j)X(1)(i,j)X \leftarrow(i-1,j)X \tag*{(1)}

forwards values one processor at a time. Offsets need not be unit length; unit offsets denote nearest-neighbor shifts.

Broadcast. An absolute or gimbal-locked source such as

(i,j)X←(j,j)X(i>j),(2)(i,j)X \leftarrow(j,j)X \qquad(i>j), \tag*{(2)}

causes many consumers indexed by ii to read the same source point where i=ji=j. A broadcast will also result from setting the index to a constant, (i.e., (i,j)X←(0,j)X(i,j)X \leftarrow(0,j)X), as (0,j)(0,j) is similarly 1-dimensional. Broadcasts can exist in both space and time; in this example, setting ii as a spatial dimension broadcasts (j,j)X(j,j)X across processors, while naming jj in time reuses the value across all later steps.

Piecewise hybrids and direct hops Coordinate offsets may also appear on the left-hand side, naming receivers at a fixed distance from the source. This is used to express hybrids between systolic and broadcast algorithms, in which an initial broadcast (a volley of direct sends) seeds systolic pathways. For example, in a modified increasing ring (1rm) shown in Figure 6, the source processor sends directly to its first and second right-side neighbors; from the second neighbor onward, the value is relayed systolically.

We can express it with three pieces:

(j+1,j)X←(j,j)X(3)(j+1,j)X \leftarrow(j,j)X \tag*{(3)}
(j+2,j)X←(j,j)X(4)(j+2,j)X \leftarrow(j,j)X \tag*{(4)}
(i,j)X←(i−1,j)X(i>j+2)(5)(i,j)X \leftarrow(i-1,j)X \qquad(i>j+2) \tag*{(5)}

The result is the first and second-right side neighbors receive early and can begin computing immediately, while the source pays for only two sends rather than a broadcast. This is especially useful in solvers and decompositions, where early processors in a row gate more work than later processors, and benefit from starting early.

Each point of the iteration space matches one of these pieces. The direct hops are more specific than the guarded relay and therefore take precedence; the compiler lowers the pieces to corresponding control-flow guards (i.e., if statements). The guards are ordered such that at runtime, each processor at each timestep binds to the most specific piece. In this case, because the first two pieces are more specific (written in terms of 1 variable, thus exhibiting gimbal lock), its guards are evaluated first. Adding (j+3,j)X←(j,j)X(j+3,j)X \leftarrow(j,j)X and shifting the relay guard to i>j+3i > j+3 deepens the direct-send prefix to depth three, and similarly for larger depths, trading source fan-out against pipeline fill time.

Two-rings. A direct hop need not target a fixed offset. In an increasing-2-ring, the source sends to its nearest neighbor and to the midpoint of the remaining processors, creating two concurrent systolic relay chains. With m=⌈(P−j)/2⌉m = \lceil(P-j)/2\rceil the midpoint of the processors yet to be reached,

(j+m,j)X←(j,j)X(6)(j+m,j)X \leftarrow(j,j)X \tag*{(6)}
(i,j)X←(i−1,j)X(i≠j+m)(7)(i,j)X \leftarrow(i-1,j)X \qquad(i \ne j+m) \tag*{(7)}

As shown in Figure 6, the two sends seed separate systolic rings, roughly halving the relay depth at the cost of one additional source send. Because mm depends on the iteration-space coordinate, the same form naturally generalizes to other multi-ring strategies.

These patterns differ only in how guarded recurrences name their sources and receivers. By composing them, Cyclotron can express strategies such as split rings (where systolic communication starts at a source processor and proceeds in both directions), doubling broadcast trees, and heterogeneous piecewise combinations, rather than restricting users to a fixed set of communication presets.

Compilation and Dependency Analysis

Compilation lowers a recurrence system and space–time mapping into one per-processor program. Algorithm 1 shows the full compilation pipeline. Spatial dimensions are bound to processor coordinates and temporal dimensions become loops. The dependency-management pass uses the space–time mapping to classify recurrence dependences as live or stale. It then topologically orders the live dependences, and then emits matching communication. Subsequent passes make communication synchronization-safe and optionally apply block-cyclic mapping and static deduplication.

Algorithm 1 Compiling recurrence to a distributed program.

Require: recurrence system R\mathcal{R}; space-time annotation σ\sigma

Ensure: one guarded program run on every processor

  1. emit a loop over the temporal dimensions of R\mathcal{R}

  2. bind spatial coordinates from the processor rank

  3. G←DependenceGraph⁡(R)G \leftarrow\operatorname{DependenceGraph}(\mathcal{R})

  4. for all edges e∈Ge \in G do

  5. &nbsp;&nbsp;if Offset⁡(e)\operatorname{Offset}(e) lies purely along a temporal dim then

  6. &nbsp;&nbsp;&nbsp;&nbsp;mark ee stale ▹\triangleright resident in a register

  7. &nbsp;&nbsp;else

  8. &nbsp;&nbsp;&nbsp;&nbsp;mark ee live ▹\triangleright produced this timestep

  9. &nbsp;&nbsp;end if

  10. end for

  11. order⁡←TopoSort⁡(live edges of G)\operatorname{order} \leftarrow\operatorname{TopoSort}(\text{live edges of }G) ▹\triangleright emission order

  12. for all tensor TT in order⁡\operatorname{order} do

  13. &nbsp;&nbsp;emit if guards for TT: from substitutions/constraints

  14. &nbsp;&nbsp;emit TT’s guarded block: receives, reads, kernel calls

  15. &nbsp;&nbsp;emit endIf

  16. end for

  17. DedupePushes⁡(R)\operatorname{DedupePushes}(\mathcal{R}) emits Sends

  18. emitEndLoop ▹\triangleright close the temporal loop body

  19. if block-cyclic mapping requested then ▹\triangleright optional

  20. &nbsp;&nbsp;BlockCyclicFold⁡\operatorname{BlockCyclicFold}: wrap program in virtual-processor loops; add modulo indexing and guards

  21. end if

  22. SpecializeProgram⁡\operatorname{SpecializeProgram}: specialize guards/loops per rank; drop redundant sends/recvs ▹\triangleright dedup communication

  23. return interpreted per-processor program

The shape of generated code

The generated program is the same on every processor: a single loop over the temporal dimension, whose body is a sequence of guarded statements. Each guard is an if over the processor’s spatial coordinates and the current value of the temporal loop variable. The guards come from two sources: the case structure implied by gimbal-locking (a statement written on a boundary face such as (i,i,k)(i,i,k) only applies where i=ji=j), and constraints the user supplies directly (such as i>j>ki>j>k). They are necessary because both the temporal loop and the spatial processor grid range over the entire iteration space: every processor reaches every timestep, but only some (processor, time) points lie inside a given statement’s region. The guard determines whether the current processor and timestep belong to the statement’s guarded region.

Within one iteration of the temporal loop, each tensor of the recurrence system owns one guarded block. A block contains everything that produces that tensor’s value for the current timestep: a receive if the value arrives from a neighboring processor, a register read if it is already resident from a prior timestep, and the kernel call that computes it. Sends are placed at the end of the loop body, after all values for the step have been produced. The compiler must therefore determine an emission order for these blocks that respects their data dependencies.

Breaking cyclic recurrence dependencies

The order matters, and it cannot be read off the source program order, because the dependence graph may be cyclic. Consider the following three-tensor system, which we use as a running example (Figure 7):

Dependence graphs and statement ordering under two space–time mappings

Figure 7. Left: the dependence graph of Equations (8)–(10) is a cycle (edges point from producer to consumer and are labeled with their offsets). The space–time mapping determines which edge is stale (dashed): a purely temporal offset refers to a value already resident from a previous timestep. Cutting the stale edge leaves an acyclic graph. The topological order determines emitted statement order. Right: the ordering of statements changes under the two mappings.

(i,j)A=F((i,j−1)C)(8)(i,j)_A = F((i,j-1)_C) \tag*{(8)}
(i,j)B=G((i−1,j)A)(9)(i,j)_B = G((i-1,j)_A) \tag*{(9)}
(i,j)C=H((i,j)B)(10)(i,j)_C = H((i,j)_B) \tag*{(10)}

BB depends on AA, CC on BB, and AA on C:acycleA→B→C→AC: a cycle A \to B \to C \to A. GG, HH, and FF are functions. Taken at face value, the cyclic dependencies admit no valid emission order for the current timestep; an arbitrary order can produce incorrect code.

The cycle is broken by a space–time mapping. Once one dimension is declared temporal, any dependence whose offset lies purely along the temporal dimension refers to a value from a previous timestep. That value already exists, computed in an earlier iteration of the temporal loop and is sitting in a register. It does not need to be produced during the current step, so it imposes no ordering constraint on the current step’s code. We call such dependence edges stale, and we remove them from the ordering graph. The read itself is not removed; it is lowered to a register read. Remaining edges, whose values are produced during the current step, are live. Deleting stale edges leaves an acyclic graph. A topological sort of the live edges yields a valid emission order.

In the example, map ii to space and jj to time. The dependence (i,j)A←(i,j−1)C(i,j)_A \leftarrow(i,j-1)_C has offset (0,−1)(0,-1): purely temporal, thus stale; the last step’s CC is already in a register. The dependence (i,j)B←(i−1,j)A(i,j)_B \leftarrow(i-1,j)_A has offset (−1,0)(-1,0) and is purely spatial. It is hence live and this step’s AA, arriving from the neighboring processor. (i,j)C←(i,j)B(i,j)_C \leftarrow(i,j)_B has no offset and is live under any mapping. Cutting the stale edge leaves the chain A→B→CA \to B \to C, and the emitted order is AA, BB, CC.

The flipped mapping, with ii to time and jj to space, results in a different emitted order. Every offset keeps its spelling but changes its meaning. The dependence (i,j)A←(i,j−1)C(i,j)_A \leftarrow(i,j-1)_C is now spatial, and the dependence (i,j)B←(i−1,j)A(i,j)_B \leftarrow(i-1,j)_A is now temporal and the source of the cut. The surviving chain is B→C→AB \to C \to A, different than the original A,B,CA,B,C order.

This reordering is necessary for correctness, not a stylistic choice. Suppose we kept the source order AA, BB, CC under the flipped mapping. BB’s dependence on (i−1,j)A(i-1,j)_A is stale: it must read the value of register AA left over from the previous timestep. But the block for AA has already run and overwritten that register with the current step’s value. BB silently consumes a value one timestep too new, resulting in incorrect output. The stale value must be read before the operation that clobbers its register is emitted.

The topological sort in lines 3–11 of Algorithm 1 guarantees this. With ii mapped in time, the stale edge A→BA \to B is deleted, its consumer BB loses its only incoming edge and becomes a leaf of the ordering graph, so it is emitted first, before the block that overwrites AA. This is not a coincidence of the example. The stale edge closes the cycle, so the surviving live edges form a path from the stale edge’s consumer (BB) back around to its producer (AA); any topological order of that path places the consumer before the producer. In other words, sorting on live edges alone enforces the read-before-clobber constraint of the stale edge, for free.

The same structure appears at full scale in Cholesky. In this case the cycle is Ls→Lc→Lgl→Lgu→LsL_s \to L_c \to L_{gl} \to L_{gu} \to L_s. The cut again changes with the space–time mapping. The resulting topological orders correspond to the different compute orders required by the loop variants in Figure 2. The topological algorithm produces those orderings directly. Fixed traversals of the source program (depth-first from any starting tensor) cannot produce correct orders for all mappings, because it must cut the cycle, and the correct cut is determined by the space–time mapping, not program order.

Emitting Communication

Once blocks are lowered, cross-processor dependences are emitted as receives. If ii is spatial, (i,j)X←(i−1,j)X(i,j)_X \leftarrow(i-1,j)_X means processor ii receives XX from processor i−1i-1. The user does not write the corresponding send; the compiler inverts the relation and inserts a send from processor i−1i-1 to ii.

Table 1 shows how sends are synthesized, depending on the dependence. Temporal dependencies require no send because the value remains locally resident. Anchored receives such as (j+1,j)X←(j,j)X(j+1,j)X \leftarrow(j,j)X name the destination directly in terms of the source coordinate, so the source emits a send to j+1j+1. Broadcasts such as (i,j)X←(j,j)X(i,j)X \leftarrow(j,j)X map many receivers ii to the same source jj, so source jj emits sends to each receiver. Same-base offset receives like (i,j)←(i−1,j)(i,j) \leftarrow(i-1,j) require one additional test to check if receivers also forward the value (producing a systolic relay), or only receive.

PatternReceive & window (dst←srcdst \leftarrow src)Relay testOriginates atSend & guard (src→dstsrc \to dst)
Temporal carry(i,j)←(i,j−1)(i,j) \leftarrow(i,j-1)—— (register persists)— none; value stays resident
Systolic relay(i,j)←(i−1,j)(i,j) \leftarrow(i-1,j), lo≤i<hilo \le i < hihi−lo>stridehi-lo > \mathit{stride}receiver (each PE forwards)(i,j)→(i+1,j)(i,j) \to(i+1,j), lo≤i+1<hilo \le i+1 < hi
Scatter (non-relay)(i,j)←(i−stride,j)(i,j) \leftarrow(i-\mathit{stride},j), lo≤i<hilo \le i < hihi−lo≤stridehi-lo \le\mathit{stride}each holder, one stride up(i,j)→(i+stride,j)(i,j) \to(i+\mathit{stride},j), lo≤i+stride<hilo \le i+\mathit{stride} < hi
Anchored(j+1,j)←(j,j)(j+1,j) \leftarrow(j,j)—source PE(j,j)→(j+1,j)(j,j) \to(j+1,j)
Broadcast(i,j,k)←(i,k,k)(i,j,k) \leftarrow(i,k,k)—source PE (fan-out)(i,k,k)→(i,j,k) ∀j(i,k,k) \to(i,j,k)\ \forall j

Table 1. Send synthesis in DeducePushes. Each receive (dst←srcdst \leftarrow src) is classified by its coordinate and matched with a send.

Consider a receive (i,j)X←(i−stride,j)X(i,j)X \leftarrow(i-\mathit{stride},j)X defined over the window low≤i<hilow \le i < hi. If stride<hi−low\mathit{stride} < hi-low, then some receivers read from another point within the window, meaning some receivers also forward the value. If stride≥hi−low\mathit{stride} \ge hi-low, every sender remains outside the window, so receivers do not forward; this produces a scatter. Cyclotron uses scatters to construct recursive-doubling tree broadcast.

The user never writes sends or send-side constraints. Cyclotron simply copies the receiver’s if guards onto the synthesized send, ensuring the sender fires only when its destination is a receiver. Duplicate sends are suppressed when multiple rules would serve the same destination.

Minimizing communication

Triangular iteration spaces like Cholesky’s are load imbalanced under a one-tile-per-processor mapping. Cyclotron therefore supports a 2D block-cyclic decomposition, which maps the virtual processor grid onto a smaller physical grid in round-robin fashion. This both balances work and exposes redundant communication. If several virtual processors on the same physical processor require the same tile from another processor, only one network receive is necessary and the remaining consumers/virtual processors can reuse the same local copy. Cyclotron applies this decomposition in two phases. The first is a post-processing pass that wraps each processor program with loops over its resident virtual processors and inserts the required modulo and guard logic. Afterwards, the generated code is specialized to each physical processor; control flow is removed, as well as redundant sends, receives, and guards. The resulting per-processor programs remain small because each generated operation corresponds to a coarse-grained tiled computation. An alternative is to eliminate redundant communication with a runtime cache, but this introduces additional runtime overhead.

System and Implementation

The Cyclotron front-end language and compiler are implemented in Python, while the runtimes that execute generated programs are native C++ and Rust. Cyclotron has three backends: a C++ backend for CPU clusters, a C++ backend for GPU clusters, and a Rust backend built with DAM [42], a framework for modeling dataflow architectures in which PEs communicate over channels. Each backend interprets the same portable Protobuf program, allowing a generated executable to run unchanged across backends. The Rust backend is used primarily for simulation. It reproduces the communication behavior of the cluster backends, including simulated MPI protocol behavior, without requiring payloads. This allows Cyclotron to detect indefinite hangs and model communication and kernel latencies without executing on a cluster. The simulator can also execute with real payloads and produce correct results, although this mode is disabled by default because it runs on a single processor. The Rust backend can be used to simulate spatial-processors composed of interlinked PEs; this exploration is future work.

Evaluation

We evaluate performance on CPU and GPU clusters. Both are hosted on Perlmutter, a supercomputer at Lawrence Berkeley National Laboratory. GPU experiments use 16 A100 GPUs, four per node, connected by NVLink within a node and HPE Slingshot 11 across nodes. CPU experiments use 16 Perlmutter nodes connected by Slingshot. We compare against Cray ScaLAPACK, SLATE, and cuSolverMp using matched precision, tile sizes, BLAS/LAPACK kernels, thread counts, and MPI communication. Each configuration uses two warmups and four measured trials; we report the best runtime.

Comparing Communication Strategies

For a specific program, the best communication schedule is rarely fixed; the fastest one will depend on factors including the network topology and processor architecture (CPUs vs GPUs), in addition to tile size, tiles per rank, and input size.

The relative performance of schedules also changes; we observed a single schedule can perform over twice as fast as an alternative on CPUs, while the alternative often performs faster than the other on GPUs.

We compare a sample set of eleven Cyclotron Cholesky variants that differ only in communication strategy, including broadcasts, systolic relays, 2-rings, bidirectional split-rings (sring), modified rings (1rm), and trees, against ScaLAPACK and SLATE. We use an ijij spatial mapping here because it enables communication deduplication, which is fundamentally not possible in other Cholesky spatial mappings.

CPU Results

Figure 9 compares 11 Cyclotron Cholesky communication schedules against ScaLAPACK on 16 CPU nodes using P×PP \times P grids, P∈{4,8}P \in\{4, 8\}, with 4 or 16 threads/rank. We also include an effectively serial control (P=4P = 4, 1 thread/rank), where communication choice has little effect and all Cyclotron schedules perform similarly to ScaLAPACK.

Figure 9. Cyclotron Cholesky speedup over ScaLAPACK on 16 CPU nodes. P×PP \times P ranks, tilesize=256, 16 tiles/rank; “thr” denotes threads/rank. Whiskers show run-time variation

ScaLAPACK’s block size NBNB was swept; the best was 256 in all cases, which we use as the baseline. Cyclotron also uses NB=256NB = 256, giving c=16c = 16. As per-rank computation becomes more parallel, communication becomes increasingly important: some schedules perform worse than ScaLAPACK, while the best Cyclotron schedule achieves 1.34–1.68× speedup across the remaining configurations. The winning communication strategy also changes with the configuration, and schedules that perform well in one regime can perform poorly in another. This demonstrates that communication policy becomes a first-order performance choice once computation is sufficiently optimized. The choice of communication policy is also heavily machine dependent. On Perlmutter’s 16 nodes, the broadcast policy performed poorly. However, on a separate 4-node machine (with nodes connected via InfiniBand), the broadcast schedule was universally best. We postulate this is due to the 4-nodes being densely connected, making 1 to all broadcasts practical.

GPU Results. Figure 8 (left) compares Cyclotron against SLATE using host-staged communication on 16 A100 GPUs. We use tile size 4096 and evaluate block-cyclic factors c=2c = 2 and c=4c = 4. We use host staging here because SLATE (on Perlmutter) does not support GPU-direct communication, giving both systems the same communication path. Under this matched transport, Cyclotron is competitive with SLATE at c=2c = 2 and reaches up to 1.24× SLATE at c=4c = 4. The relatively smaller spread among Cyclotron’s communication schedules contrasts with the CPU results; the importance of communication strategy is architecture dependent.

Figure 8. Block-cyclic Cholesky on four GPU nodes (16 A100s, 1 rank/GPU, so P=4P=4): Left: speedup over SLATE, with host-staged communication. Right: speedup over Nvidia cuSolverMp and SLATE, with device-device direct communication. tilesize=4096, with block-cyclic factor c=2c=2 and c=4c=4 (right). Each process owns c×cc \times c tiles, so N=Pc⋅N = P c \cdot tile; SLATE and cuSolverMp use the same block size (=tile) and the same cc. Bars are the fastest steady cycle; whiskers reach slowest.

Figure 8 (right) evaluates Cyclotron on 16 A100s with device-resident GPU-direct communication and out-of-order execution, and compares against Nvidia cuSolverMp, which likewise uses GPU-direct communication. Cyclotron reaches 4.57× and 4.74× SLATE, and 1.12× and 1.28× cuSolverMp.

The difference with cuSolverMp appears to come largely from execution scheduling. cuSolverMp is closed source, but profiling shows that its communication is performed using NCCL broadcast collectives, with communication and computation proceeding in bulk-synchronous stages. Cyclotron instead emits dependency-driven code that naturally overlaps communication and computation, and out-of-order execution further increases this overlap.

CPU Matrix Multiply. We also evaluate three different matrix multiply schedules against ScaLAPACK on our 16-node CPU backend. We compare systolic, broadcast, and hybrid schedules (broadcast in 1 dimension, systolic in the other). Figure 10 shows the broadcast variant working best.

Figure 10. Cyclotron GEMM vs. ScaLAPACK on 4 and 16 CPU nodes, with systolic, broadcast, and hybrid schedules

Generating Different Spatial Mappings

The space–time annotation of Section 3 is a retag, not a rewrite. The same blocked triangular-solve recurrences produce two complementary wavefronts depending on which index is spatial: an ii-spatial pipelines the solution XX, while a kk-spatial pipelines the right-hand side BB. Each leaves a region of processors idle while waiting for its wavefront, but these idle regions are complementary. One can therefore interleave the two mappings by changing only the space–time annotation between successive right-hand-side chunks.

Table 2 evaluates this “ping-pong” schedule. Even-numbered chunks use one spatial mapping and odd-numbered chunks use the other, allowing work from one wavefront to fill much of the other’s pipeline imbalance. In isolation, the Cyclotron

P=4P = 4 (1/node)P=8P = 8 (2/node)
ii-spatial systolic54.3749.95
kk-spatial systolic54.5450.36
broadcast55.7051.86
modified ring (1rM)55.3950.75
increasing 2-ring55.9249.89
ping-pong systolic93.6591.98
ScaLAPACK pstrsm47.5544.33
overlap speedup1.72×1.83×
vs. ScaLAPACK1.97×2.07×

Table 2. Blocked TRSM throughput on four CPU nodes (Perlmutter), tile 1024 × 1024, 1024 right-hand sides). Entries are GFLOPS/proc. Overlap is ping-pong time against the sum of the two isolated systolic times. ScaLAPACK is pstrsm on the same P×1P \times1 grid and the same number of solves (20)

variants perform similarly: changing the spatial dimension or replacing a systolic relay with a broadcast, modified ring, or 2-ring has little effect on the critical path of a single solve. Interleaving the two complementary systolic mappings, however, improves throughput by 1.72× at P=4P = 4 and 1.83× at P=8P = 8 relative to running them back-to-back, reaching 1.97× and 2.07× the throughput of ScaLAPACK. The ping-pong throughput remains similar across the two placements (93.65 vs. 91.98 GFLOPS/proc), indicating that the benefit does not arise merely from packing multiple ranks onto a node.

Figure 11 compares two spatial mappings of the same systolic matrix multiply and shows that the better mapping depends on tile shape. We compute C=ABC = AB on a 4×44 \times4 processor grid, where AA is M×KM \times K, BB is K×NK \times N, and CC is M×NM \times N. We fix M=KM = K (square AA tiles) and sweep NN. When M=K=NM = K = N, both dataflows perform equivalently. As NN shrinks, AA becomes much larger than BB and CC: the output-stationary mapping moves AA and BB, whereas the weight-stationary mapping keeps the larger AA tiles fixed and moves only the smaller BB and CC tiles. Consequently, the weight-stationary mapping outperforms output-stationary as NN decreases.

Figure 11. Weight-stationary (ikik-spatial) versus output-stationary (ijij-spatial) GEMM on 16 CPU nodes. As NN decreases relative to M=KM = K, weight-stationary increasingly wins by keeping the larger AA tiles stationary.

Fusion

Each PE in a Cyclotron program eagerly executes an operation as soon as its dependencies are satisfied. Consequently, running subsequent kernels does not introduce a global barrier between them: operations from the second kernel can begin before the first kernel has completed across all PEs. The preceding ping-pong TRSM experiment demonstrated this effect across successive instances of the same kernel, where pipeline imbalances in adjacent solves overlap naturally without an explicit user-directed fusion primitive.

The same mechanism applies across different kernels; we also execute a Cholesky followed by a multi-right-hand-side triangular solve. Table 3 reports this experiment on four CPU nodes in both block-cyclic and non-block-cyclic regimes. In the non-block-cyclic configuration, Cholesky is load-imbalanced, and processors in earlier rows and columns of the processor grid finish their assigned factorization work substantially earlier than others. Because Cyclotron executes operations as soon as their dependencies are satisfied, portions of the subsequent triangular solve can begin on these processors while Cholesky is still running elsewhere. This combination of load imbalance and dependency-driven fusion hides about 90% of the standalone solve time, allowing the solve to execute nearly for free. In the block-cyclic configuration, work is more evenly balanced across processors, leaving less idle time to exploit; fusion therefore hides only 18–23% of the solve, while still outperforming sequential ScaLAPACK Cholesky followed by TRSM by 1.30–1.62×.

nrhsn_{\mathrm{rhs}}c=1c=1 (tile 1024) fusedhiddenvs. scalac=4c=4 (block-cyclic, tile 256) fusedhiddenvs. scala
256180 ms90%1.17×48 ms23%1.62×
512182 ms90%1.34×58 ms18%1.30×

Table 3. Fused systolic Cholesky + TRSM versus ScaLAPACK pspotrf then pstrsm (N=4096N = 4096, 4×44 \times4 grid, 16 ranks). Times in milliseconds. Hidden is the fraction of our standalone 2-D solve absorbed by fusion, 1−(tfused−tchol)/ttrsm1 - (t_{\mathrm{fused}} - t_{\mathrm{chol}})/t_{\mathrm{trsm}}.

Related Work

Systolic arrays were introduced by Kung and Leiserson [16, 17]. Rajopadhye, Fujimoto, and Purushothaman [29, 30, 31], as well as Quinton [26, 27] established how to synthesize them from uniform and affine recurrence equations. There is a long history of dataflow compilers based on the polyhedral and affine models. AutoSA [37] and PolySA [9] use the polyhedral model to find unit-length read distances among loop nests and then compile the equations to dataflow. They primarily target matrix multiply and convolution, and do not handle recurrences (equations with dependencies) beyond the LU decomposition, whose dataflow resembles matrix multiply. Lam did early work on systolic-array compilation, while Lam and Wolfe studied locality optimization [21, 22].

AlphaZ [39, 40, 41] is the closest equational system, instantiating recurrence equations on distributed-memory machines. Users explicitly provide space–time maps, including statement-ordering dimensions that Cyclotron instead infers. Its distributed backend emits nearest-neighbor systolic halo exchanges using blocking MPI_Send and MPI_Recv, whereas Cyclotron expresses broadcasts, relays, and piecewise rings directly in the recurrence system. Legion [3] also derives communication from programmer-declared data dependencies, but does so dynamically at runtime rather than statically. Its programs also explicitly order per-timestep kernel launches, whereas Cyclotron derives this ordering from the space–time mapping. Thus, Cyclotron’s ordering algorithm is complementary to Legion and could sit above it.

Our IR is an extension and re-imagining of the assignment-free notation from the Algorithms of Informatics textbook by Gyires [13]. Their notation is array-style, similar to Halide’s input language [28] (e.g. A(i,j,k)A(i,j,k), as opposed to our (ijk)A(ijk)A). Halide’s notation is adapted by the Stellar [12] and Gemini [11] work for designing matrix-multiply systolic arrays. Cyclotron extends this style of notation to express multiple communication patterns, combinations of them, and gimbal-locked indexing. Calyx [24] and Dahlia [23] provide IRs for synthesizing accelerators with explicit control and memory pipelines, but do not reason about affine recurrences or induce space–time schedules. The Wavefront Array Processor [18] was a programmable systolic array whose language resembled the per-PE programs Cyclotron generates.

DISTAL [38] is a tensor-algebra compiler, built on TACO [15], that generates distributed matrix-multiplication kernels. DISTAL separates tensor distribution from computation scheduling, with communication inferred from these choices; it supports only output-stationary programs without output dependencies. Matrix-multiply algorithms include Cannon [6], SUMMA [35], and PUMMA [8], COSMA [20], Johnson [1], and Solomonik [32]. Early work by [14] explored distributed triangular solve, and [19] and [2] investigated communication-optimal Cholesky. The distributed linear-algebra libraries ScaLAPACK [7], SLATE [10], Elemental [25] and DPLASMA [4, 5] implement variants of matrix multiply and solvers.

Conclusion

We present Cyclotron, a language and compiler that makes communication an expressible, first-class part of distributed tiled algorithms. By separating communication from computation and space–time mapping, Cyclotron lets programmers change how data moves without rewriting the computation itself, and makes it practical to explore a broad space of communication schedules. Across CPUs and GPUs, this flexibility allows Cyclotron to match and often outperform hand-optimized distributed linear algebra libraries, while showing that the best schedule depends on the machine, algorithm, and problem size. This work opens the door to deeper exploration of communication strategies for general networks of interacting processing elements, from multi-die GPU systems to wafer-scale engines and spatial dataflow accelerators. We believe this can enable software to better express and adapt to increasingly heterogeneous communication patterns as the hierarchies and interconnects of distributed computing platforms continue to diversify.

Acknowledgments

The authors used generative AI tools to assist with code generation and debugging, as well as copyediting, wording, condensation, and proofreading. All technical ideas, experimental design, analysis, claims, and final decisions were produced and verified by the authors.

References

References

  1. [1]Ramesh C Agarwal, Susanne M Balle, Fred G Gustavson, Mahesh Joshi, and Prasad Palkar. 1995. A three-dimensional approach to parallel matrix multiplication. IBM Journal of Research and Development 39, 5 (1995), 575–582.DOI
  2. [2]Grey Ballard, James Demmel, Olga Holtz, and Oded Schwartz. 2009. Communication-optimal parallel and sequential Cholesky decomposition. In Proceedings of the twenty-first annual symposium on Parallelism in algorithms and architectures. 245–252.
  3. [3]Michael Bauer, Sean Treichler, Elliott Slaughter, and Alex Aiken. 2012. Legion: Expressing Locality and Independence with Logical Regions. In Proceedings of the International Conference on High Performance Computing, Networking, Storage and Analysis (SC). IEEE.
  4. [4]George Bosilca, Aurelien Bouteiller, Anthony Danalis, Mathieu Faverge, Azzam Haidar, Thomas Herault, Jakub Kurzak, Julien Langou, Pierre Lemarinier, Hatem Ltaief, et al. 2011. Flexible development of dense linear algebra algorithms on massively parallel architectures with DPLASMA. In 2011 IEEE International Symposium on Parallel and Distributed Processing Workshops and Phd Forum. IEEE, 1432–1441.DOI
  5. [5]George Bosilca, Aurelien Bouteiller, Anthony Danalis, Mathieu Faverge, Thomas Hérault, and Jack Dongarra. 2013. Parsec: Exploiting heterogeneity to enhance scalability. Computing in Science & Engineering 15, 6 (2013), 36–45.DOI
  6. [6]Lynn Elliott Cannon. 1969. A cellular computer to implement the Kalman filter algorithm. Montana State University.
  7. [7]Jaeyoung Choi, Jack J Dongarra, Roldan Pozo, and David W Walker. 1992. ScaLAPACK: A scalable linear algebra library for distributed memory concurrent computers. In The Fourth Symposium on the Frontiers of Massively Parallel Computation. IEEE Computer Society, 120–121.
  8. [8]Jaeyoung Choi, David W Walker, and Jack J Dongarra. 1994. PUMMA: Parallel universal matrix multiplication algorithms on distributed memory concurrent computers. Concurrency: Practice and Experience 6, 7 (1994), 543–570.
  9. [9]Jason Cong and Jie Wang. 2018. PolySA: Polyhedral-based systolic array auto-compilation. In 2018 IEEE/ACM International Conference on Computer-Aided Design (ICCAD). IEEE, 1–8.DOI
  10. [10]Mark Gates, Jakub Kurzak, Ali Charara, Asim YarKhan, and Jack Dongarra. 2019. SLATE: Design of a modern distributed and accelerated linear algebra library. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis. 1–18.DOI
  11. [11]Hasan Genc, Seah Kim, Alon Amid, Ameer Haj-Ali, Vighnesh Iyer, Pranav Prakash, Jerry Zhao, Daniel Grubb, Harrison Liew, Howard Mao, et al. 2021. Gemmini: Enabling systematic deep-learning architecture evaluation via full-stack integration. In 2021 58th ACM/IEEE Design Automation Conference (DAC). IEEE, 769–774.arxiv.org/abs/1911.09925
  12. [12]Hasan Nazim Genc, Hansung Kim, Prashanth Ganesh, and Yakun Sophia Shao. 2024. Stellar: An Automated Design Framework for Dense and Sparse Spatial Accelerators. In 2024 57th IEEE/ACM International Symposium on Microarchitecture (MICRO). IEEE, 409–422.
  13. [13]János P. Gyires. 2013. Systolic Systems. In Algorithms in Informatics, Volume 2. University of Debrecen. https://gyires.inf.unideb.hu/KMITT/a52/ch16.html Accessed: 2025-11-10.
  14. [14]Michael T. Heath and Charles H. Romine. 1988. Parallel Solution of Triangular Systems on Distributed-Memory Multiprocessors. SIAM J. Sci. Statist. Comput. 9, 3 (1988), 558–588. arXiv:https://doi.org/10.1137/0909037 doi:10.1137/0909037
  15. [15]Fredrik Kjolstad, Shoaib Kamil, Stephen Chou, David Lugato, and Saman Amarasinghe. 2017. The tensor algebra compiler. Proceedings of the ACM on Programming Languages 1, OOPSLA (2017), 1–29.DOI
  16. [16]Hsiang-Tsung Kung. 1982. Why systolic architecture? Design Research Center, Carnegie-Mellon University Pittsburgh, PA, USA.
  17. [17]Hsiang Tsung Kung and Charles E Leiserson. 1979. Systolic arrays (for VLSI). In Sparse Matrix Proceedings 1978, Vol. 1. Society for industrial and applied mathematics Philadelphia, PA, USA, 256–282.
  18. [18]Sun-Yuan Kung, Arun, Gal-Ezer, and Bhaskar Rao. 1982. Wavefront Array Processor: Language, Architecture, and Applications. IEEE Trans. Comput. C-31, 11 (1982), 1054–1066. doi:10.1109/TC.1982.1675922DOI
  19. [19]Grzegorz Kwasniewski, Marko Kabic, Tal Ben-Nun, Alexandros Nikolaos Ziogas, Jens Eirik Hæhre, André Gaillard, Timo Schneider, Maciej Basta, Anton Kozhevnikov, Joost VandeVondele, et al. 2021. On the parallel i/o optimality of linear algebra kernels: Near-optimal matrix factorizations. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis. 1–15.
  20. [20]Grzegorz Kwasniewski, Marko Kabic, Maciej Basta, Joost VandeVondele, Raffaele Solcà, and Torsten Hoefler. 2019. Red-blue pebbling revisited: near optimal parallel matrix-matrix multiplication. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis. 1–22.
  21. [21]Monica S Lam and Michael E Wolf. 2004. A data locality optimizing algorithm. ACM SIGPLAN Notices 39, 4 (2004), 442–459.
  22. [22]Monica Sin-Ling Lam. 1987. A systolic array optimizing compiler. Carnegie Mellon University.DOI
  23. [23]Rachit Nigam, Sachille Atapattu, Samuel Thomas, Zhijing Li, Theodore Bauer, Yuwei Ye, Apurva Koti, Adrian Sampson, and Zhiru Zhang. 2020. Predictable accelerator design with time-sensitive affine types. In Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation. 393–407.DOI
  24. [24]Rachit Nigam, Samuel Thomas, Zhijing Li, and Adrian Sampson. 2021. A compiler infrastructure for accelerator generators. In Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems. 804–817.DOI
  25. [25]Jack Poulson, Bryan Marker, Robert A Van de Geijn, Jeff R Hammond, and Nichols A Romero. 2013. Elemental: A new framework for distributed memory dense matrix computations. ACM Transactions on Mathematical Software (TOMS) 39, 2 (2013), 1–24.DOI
  26. [26]P. Quinton. 1984. Automatic Synthesis of Systolic Arrays from Uniform Recurrent Equations. In 11th Annual International Symposium on Computer Architecture, Ann Arbor. 208–214.
  27. [27]Patrice Quinton and Vincent Van Dongen. 1989. The mapping of linear recurrence equations on regular arrays. Journal of VLSI Signal Processing 1, 2 (1989), 95–113.DOI
  28. [28]Jonathan Ragan-Kelley, Connelly Barnes, Andrew Adams, Sylvain Paris, Frédo Durand, and Saman Amarasinghe. 2013. Halide: a language and compiler for optimizing parallelism, locality, and recomputation in image processing pipelines. Acm Sigplan Notices 48, 6 (2013), 519–530.
  29. [29]S. V. Rajopadhye. 1986. Synthesis, Optimization and Verification of Systolic Architectures. Ph. D. Dissertation. University of Utah, Salt Lake City, Utah 84112.
  30. [30]Sanjay V Rajopadhye and Richard M Fujimoto. 1990. Synthesizing systolic arrays from recurrence equations. Parallel computing 14, 2 (1990), 163–189.DOI
  31. [31]S. V. Rajopadhye, S. Purushothaman, and R. M. Fujimoto. 1986. On Synthesizing Systolic Arrays from Recurrence Equations with Linear Dependencies. In Proceedings, Sixth Conference on Foundations of Software Technology and Theoretical Computer Science. Springer Verlag, LNCS 241, New Delhi, India, 488–503.DOI
  32. [32]Edgar Solimanok and James Demmel. 2011. Communication-optimal parallel 2.5 D matrix multiplication and LU factorization algorithms. In European Conference on Parallel Processing. Springer, 90–109.
  33. [33]Shiv Sundram, Muhammad Usman Tariq, and Fredrik Kjølstad. 2024. Compiling Recurrences over Dense and Sparse Arrays. Proc. ACM Program. Lang. 8, OOPSLA1, Article 103 (April 2024), 26 pages. doi:10.1145/3649820DOI
  34. [34]Muhammad Usman Tariq, Shiv Sundram, and Fredrik KJolstad. 2025. REPTILE: Performing Tiling of Recurrences. Proc. ACM Program. Lang. 9, OOPSLA2, Article 296 (Oct. 2025), 27 pages. doi:10.1145/3763074DOI
  35. [35]Robert A Van De Geijn and Jerrell Watts. 1997. SUMMA: Scalable universal matrix multiplication algorithm. Concurrency: Practice and Experience 9, 4 (1997), 255–274.
  36. [36]Bala Vinaithirthan, Shiv Sundram, Sneha Goenka, and Fredrik Kjolstad. 2026. Compiling Bioinformatics Recurrences. arXiv preprint arXiv:2607.06225 (2026).arxiv.org/abs/2607.06225
  37. [37]Jie Wang, Licheng Guo, and Jason Cong. 2021. AutoSA: A Polyhedral Compiler for High-Performance Systolic Arrays on FPGA. In Proceedings of the ACM/SIGDA International Symposium on Field-Programmable Gate Arrays (FPGA).DOI
  38. [38]Rohan Yadav, Alex Aiken, and Fredrik Kjølstad. 2022. DISTAL: the distributed tensor algebra compiler. In Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation (San Diego, CA, USA) (PLDI 2022). Association for Computing Machinery, New York, NY, USA, 286–300. doi:10.1145/3519939.3523437DOI
  39. [39]Tomofumi Yuki, Gautam Gupta, DaeGon Kim, Tanveer Pathan, and Sanjay Rajopadhye. 2012. AlphaZ: A System for Design Space Exploration in the Polyhedral Model. In Languages and Compilers for Parallel Computing (LCPC).DOI
  40. [40]T. Yuki, G. Gupta, DG. Kim, T. Pathan, and S. Rajopadhye. 2012. Alp- haZ: A System for Design Space Exploration in the Polyhedral Model. In Proceedings of the 25th International Workshop on Languages and Compilers for Parallel Computing. Tokyo, Japan.DOI
  41. [41]T. Yuki and S. Rajopadhye. 2013. Parametrically Tiled Distributed Memory Parallelization of Polyhedral Programs. Technical Report CSU-CS-13-105. Colorado State University, Computer Science Department.
  42. [42]Nathan Zhang, Rubens Lacouture, Gina Sohn, Paul Mure, Qizheng Zhang, Fredrik KJolstad, and Kunle Olukotun. 2024. The Dataflow Abstract Machine Simulator Framework. In 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA). IEEE, 532–547.

Paper details

vlnc:W_xj2x8xhg
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents