Manuscript Offprint
arXiv:2610.09156Compiling Semi-Ring Dynamic Programming to Tier-Aware 3D-DRAM Processing-in-Memory
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Processing-in-Memory (PIM) on monolithic 3D (M3D) DRAM is a promising answer to the memory wall for data-intensive dynamic programming (DP), yet extracting its performance today demands hand-written kernels: the programmer must pick a tile size, place data across non-uniform-latency memory tiers, partition work between heterogeneous processing units, and insert the right broadcasts and queues by hand. We present GenMLIR, an MLIR compiler that automates this mapping for tier-aware 3D PIM. GenMLIR encodes the semi-ring generalized grid update, the algebraic form shared by all-pairs shortest path (APSP) and sequence alignment, as a first-class IR abstraction, and lowers it through four GenDRAM-aware pass groups that derive blocked tiling, tier-aware placement, tile-to-PU assignment, and explicit communication. We also characterize precisely which DP recurrences the abstraction admits and which it does not. On the GenDRAM architecture, GenMLIR-generated code runs up to (APSP) and (alignment) faster than a lowering without compiler support, and faster than a standard affine-tiling PIM compiler we also implement, reaching 90–100% of an achievable-performance bound. It expresses these workloads in 4–9 lines instead of and compiles in a negligible fraction of runtime.
Keywords
Processing-in-Memory, MLIR, Monolithic 3D DRAM, Dynamic Programming, Compiler, Tier-Aware Data Placement
The hardware, however, has outrun the software. A modern 3D PIM part such as GenDRAM [15] presents the programmer with a stack whose row-access latency varies by from the bottom tier to the top, two functionally distinct classes of processing unit, an inter-PU ring that must be driven in either broadcast or pipelined mode, and a bank-group geometry that dictates how tiles may be laid out. Achieving good performance means choosing a tile size against an on-chip SRAM budget, pinning latency-critical tables to fast tiers while interleaving bandwidth-bound tensors across channels, assigning tiles to PUs so that neighbors do not collide in the same bank, and inserting broadcasts, barriers, and queues that respect the recurrence. Today all of this is done by hand, once per kernel. The resulting code is unportable and, more importantly, it is not reusable: a change of recurrence means starting over.
Our starting point is an observation made by the GenDRAM authors [15] and, before them, by the GraphBLAS community [11]: APSP and sequence alignment are the same computation over different semi-rings. Both repeatedly update a cell of a grid by combining (⊗) two neighbors and accumulating (⊕) the result. GenDRAM used this isomorphism to justify a single hardware substrate. We argue it also supports a single compilation strategy—and that this is where the abstraction pays off most, because the tiling, dependence, placement, and communication decisions listed above are all independent of which semi-ring is instantiated. What is workload-specific is only the execution mode.
This paper turns that argument into a compiler. GenMLIR is an MLIR stack that takes a semi-ring DP recurrence plus a small configuration record and emits a GenDRAM command stream. Its contributions are:
• An IR for tier-aware DP. We encode the generalized grid update as an MLIR dialect and pair it with a device-level dialect that exposes tiers, bank-groups, PU classes, and communication primitives, so that placement and scheduling become IR rewrites rather than hand edits ( ).
• A characterization of the abstraction’s reach. We identify the algebraic conditions a recurrence must satisfy to be admitted, enumerate seven DP problems that qualify, and state explicitly which ones do not and why ( ). This scopes a claim that was previously left open.
• Tier-aware and heterogeneity-aware passes. We give a capacity model that derives the tile size directly from the PU SRAM budget, a tier assignment driven by access-latency sensitivity, and a mode-selection pass that chooses between broadcast and producer-consumer lowering ( ). We separate these from the standard transformations we reuse.
• An evaluation against strong baselines. We compare against an achievable bound and a standard affine-tiling PIM pass, not only against a lowering without compiler support, and add a memory-traffic analysis and compile-time and lines-of-code measurements ( ).
2 Background and Related Work
2.1 Dynamic Programming as a Semi-Ring
A semi-ring is a set equipped with an associative combination operator and an associative, commutative accumulation operator over which distributes. A large family of DP algorithms updates a matrix by

Figure 1: The GenDRAM target. Left: an M3D DRAM stack of eight latency tiers ( 2.29–22.88 ns; wordline RC delay grows with distance from the logic die), bonded at 1 m pitch to a logic die holding 32 PUs—one per bank-group, since 16 channels 2 bank-groups per channel = 32. Right: a PU (dashed) is a near-bank PE cluster of 16 lightweight PEs, a 256 KB shared scratchpad and combiner, a multiplier-less Max/Min engine with its Seq-additional and APSP-subtract sub-units, and an interconnect interface (data fusion unit and switch). The DRAM banks, the bank/channel bus, and the inter-PU ring lie outside the PU. Redrawn after Fig. 8 of [15].
instantiating (⊕, ⊗) per domain. Floyd–Warshall APSP relaxes edges over the (min, +) semi-ring; Smith–Waterman alignment maximizes a score over (max, +). The two are structurally identical and differ only in the operator pair and in how the resulting dependence graph is traversed—globally, in pivot-broadcast supersteps, versus locally, along a diagonal wavefront. This algebraic unification is long-established in the graph-analytics literature [11] and was applied to 3D PIM hardware design by GenDRAM [15]; Eq. (1) is reproduced from the latter. Our contribution is not the abstraction but its use as a compiler IR, together with a precise statement of its limits (§3.5).
2.2 Target Architecture: GenDRAM
Relationship to prior work. GenMLIR targets GenDRAM [15], a recently proposed M3D DRAM PIM accelerator. GenDRAM contributes all of the hardware in this subsection: the tiered stack, the heterogeneous PU organization, the modulo tile-to-PU mapping rule of Eq. (2), the decision to pin the PTR/CAL tables to Tier 0, the two execution modes, and the cycle-accurate simulator used in §4. Fig. 1 is redrawn after Fig. 8 of [15]. What GenDRAM does not provide, and what this paper supplies, is a way to reach any of it from a program rather than from a hand-written mapping.
Structure. The logic die carries 32 PUs in a 1:1 coupling with the DRAM bank-groups, so an ACTIVATE delivers a full row into the owning PU's scratchpad over the hybrid-bond interface. Eight PUs are Search PUs, built for the irregular, latency-critical PTR→CAL lookups of genomic seeding; the remaining 24 are Compute PUs, each a 16-PE cluster whose reconfigurable adder/comparator implements (min, +) or (max, +) directly. Three properties drive every compiler decision that follows:
(i) Tiered latency. The staircase wordline routing of a 1024-layer stack makes rise (2.29 to 22.88 ns), widening full row-access time by (35 to 55 ns). Placement is therefore not latency-neutral.
(ii) Bank-group geometry. A tile's owner PU is fixed by
with M tiles per row, C channels and G bank-groups per channel, so logically adjacent tiles land on distinct PUs and wavefront neighbors do not contend.
(iii) Two execution modes. APSP runs homogeneously: a pivot PU updates , broadcasts it over the ring, and all PUs then update row/column and internal tiles in lockstep. Genomics runs as a heterogeneous pipeline: Search PUs stream candidate locations into queues consumed by Compute PUs.
2.3 MLIR
MLIR [12] supports coexisting abstraction levels in one pipeline via user-defined dialects that interoperate with existing passes. Halide [21] and TVM [6] showed the value of separating algorithm from schedule; MLIR makes that separation extensible. It fits here because the object being lowered, a grid update, must successively acquire a tile structure, an owner PU, a memory tier, and a communication schedule, each naturally a distinct IR level rather than a compiler-internal side table.
2.4 Related Work
Synthesis of DP hardware. ROCCC generates systolic arrays for wavefront algorithms from C [3]; DWARV derives pipelined DP datapaths by recursive variable expansion [18]; Cinnabar synthesizes DP energy controllers [22]; and DP-HLS supplies a C++ template library over Vitis HLS for bioinformatics kernels [5]. All emit a frozen hardware instance per recurrence, so any algorithmic change costs a full synthesis cycle. GenMLIR instead targets fixed, programmable PIM hardware.
Mapping onto programmable accelerators. GenDP couples a generic DP accelerator with DPMap, which lowers data-flow graphs to control instructions [10]; GMX adds DP-oriented ISA extensions to RISC-V [9]; Darwin-WGA exposes a co-processor through OpenCL [8, 23]; GenASM accelerates approximate string matching [4]. All assume a flat, uniform-latency memory. None must decide which of eight tiers a table belongs in, or how to split a kernel across two PU classes, the two decisions that dominate performance on M3D PIM, and the reason a new pass design is needed rather than a port. Likewise, HPVM-HDC compiles across CPUs, GPUs and accelerators from a heterogeneous IR [2]; we adopt its philosophy, but to our knowledge no existing MLIR pipeline models non-uniform DRAM tier latency or heterogeneous near-bank PU classes as first-class IR concepts.
3 The GenMLIR Compiler
GenMLIR lowers a DP specification to a GenDRAM command stream in three phases: a front-end that captures algorithm, data, and configuration; a mid-end of four GenDRAM-aware pass groups; and a back-end that emits device API calls and command streams. Fig. 2 shows the full pipeline.
3.1 What Is New, and What Is Reused
Because a compiler is assembled largely from known transformations, we state the boundary explicitly rather than leave it to inference; it is also drawn in Fig. 2.
General-purpose MLIR passes: loop canonicalization, blocked tiling of an affine nest, bufferization and memory-space assignment, SIMD lowering onto PE lanes, and instruction selection. These form the lowering backbone that the passes below extend with DP and tier-specific reasoning.
New to this work: (1) DP pattern extraction, which recovers a semi-ring dp.grid_update from a scalar add/compare/select nest, so that downstream passes reason about an algebraic operator rather than a fixed opcode sequence; (2) dependence materialization, which synthesizes either the three-phase blocked Floyd–Warshall dependence structure or a diagonal wavefront order from the same dp.grid_update, selected by operator signature; (3) tier-aware placement, which ranks memory objects by latency sensitivity and assigns them to physical tiers under a capacity constraint (§3.3); (4) mode selection, which commits the module to broadcast or producer-consumer lowering; and (5) communication synthesis, which turns ownership plus dependence edges into ring broadcasts, barriers, or queue send/recv pairs. Items (1)–(2) are what make the semi-ring abstraction operational; (3)–(5) are what make it tier-aware, and have no analogue in flat-memory accelerator compilers.
3.2 Front-End: GenDSL
GenDSL is a small declarative language with three sections. Algorithm names the semi-ring ( , ) and the recurrence's index pattern. Data declares the matrices, the PTR/CAL lookup tables, and the producer-consumer streams between seeding and alignment. Configuration exposes the knobs a user may wish to override: tile size B, execution mode, the Search/Compute PU split, tier hints, and datapath precision. These all default to compiler-derived values, so a correct program need not mention them. GenDSL lowers to two dialects: a DP dialect that makes the recurrence and the intended traversal explicit, and a GenDRAM dialect whose types carry a tier, a channel, and a bank-group, and whose operations include gendram.broadcast, gendram.barrier, and gendram.send/recv.
3.3 Mid-End: Four Pass Groups
G1: DP recognition and normalization. Pattern extraction replaces the scalar update nest with a single dp.grid_update annotated with its semi-ring; canonicalization then normalizes loop bounds, index expressions, and boundary handling. The point of G1 is stability: tiling and dependence construction must not depend on incidental syntax in the input program.
G2: Tiling and dependence formation. Rather than taking B as a tuning parameter, we derive it. A blocked update has a working set of three tiles. At w bytes per element these must fit in the PU's on-chip SRAM, of capacity S (on GenDRAM, a 256 KB shared scratchpad plus KB of PE-local memory, so S = 768 KB):
For (the 32-bit APSP datapath), . The pass then materializes the three blocked Floyd–Warshall phases—pivot , row/column, internal— as separate IR regions with explicit dependence edges between them, or, for alignment, splits the program into seeding and alignment kernels and constructs a legal diagonal wavefront order over the banded DP.
G3: Mapping and tier-aware placement. Mode selection records broadcast or pipeline style as a module attribute. Tile-to-PU assignment applies Eq. (2), annotating each tile with owner_pu. Placement then ranks each memory object o by a latency sensitivity , the ratio of dependent (pointer-chasing) accesses to streamed bytes, and greedily assigns objects in decreasing to the lowest free tier subject to that tier's capacity. Seeding's PTR/CAL tables have and occupy the fast tiers; distance matrices and read buffers have and are instead channel-interleaved across the upper tiers to maximize bank parallelism. This reproduces GenDRAM's hand-chosen placement as the output of a policy rather than as a constant, which is what allows the same pass to place a workload GenDRAM's authors never considered.
G4: Communication and synchronization synthesis. Ownership plus dependence edges determine communication. For APSP the compiler emits a broadcast of each updated pivot tile and barriers that separate the three phases. For alignment it emits queue-based send/recv between Search and Compute PUs, and chooses queue depth from the modeled seeding/alignment throughput ratio, exposing it as a runtime parameter when the estimate is uncertain.
3.4 Back-End
The back-end lowers the placed, scheduled IR onto GenDRAM's datapath in three general-purpose steps. Bufferization turns each tile into a buffer in the memory space G3 assigned, so tier decisions

Figure 2: The GenMLIR compilation pipeline. A GenDSL specification is lowered into a DP-level dialect and a GenDRAM device dialect, transformed by four mid-end pass groups, and emitted as a command stream. Passes marked ★ are new to this work; unmarked passes are general-purpose MLIR transformations GenMLIR builds on. The bottom band shows the two execution modes that mode selection (G3) chooses between.
become physical addresses. PE mapping vectorizes the inner update across a PU's sixteen PE lanes: a row activation yields an 8192-bit block and an APSP tile row is bits, so each PE takes a 512-bit slice matching the row-buffer width. Instruction selection emits native operations from the G1 semi-ring, so the operator pair selects which Max/Min sub-units run (an add with min/compare for (min, +), a max-logic sequence for (max, +)), not a fixed opcode sequence. One back-end thus serves both workloads.
Command-stream emission is target-specific, producing a memory layout (each object's tier, channel, and bank-group from G3) and an execution schedule (per-PU command order and communication events from G2/G4). Per PU it interleaves memory commands (ACTIVATE, reads over the 1024-bit hybrid-bond interface, precharge), datapath commands, and G4 messages (broadcast/barrier for APSP, queue send/recv for alignment), subject to two constraints: a row stays open across all its reads before precharge, and the schedule honors the Floyd-Warshall phase barriers and the queue depth bounding the pipeline.
3.5 Scope of the Abstraction
A recurrence is admitted by the DP dialect when (a) is associative and commutative and distributes over it, so tiles may be reduced in any order; (b) the dependence pattern is affine in the loop indices, so tiling is legal; and (c) the cell update is data-independent in its control flow, so a static schedule exists. Table 1 lists problems meeting these conditions; all reuse the same passes, differing only in the operator pair the front-end records and the traversal G2 selects.
Three classes fall outside. Data-dependent control flow (X-drop or adaptive-band alignment, where the band shifts with the running score) violates (c), requiring a speculative or dynamically re-tiled schedule that G2 does not synthesize. Non-grid dependence graphs, such as matrix-chain parenthesization or tree DP, violate
Table 1: DP problems admitted by the GenMLIR DP dialect. All share one pass pipeline; only the operator pair and the traversal differ.
| Problem | ⊕ | ⊗ | Traversal |
|---|---|---|---|
| APSP (Floyd-Warshall) | min | + | blocked broadcast |
| Sequence alignment (SW) | max | + | wavefront |
| Edit / Levenshtein distance | min | + | wavefront |
| Transitive closure | ∨ | ∧ | blocked broadcast |
| Widest path (bottleneck) | max | min | blocked broadcast |
| Minimax path | min | max | blocked broadcast |
| Viterbi (log domain) | max | + | wavefront |
(b). Non-associative accumulations (e.g. fixed-point probabilistic scoring, where reduction order changes the result) violate (a). The most valuable next step is to relax (c) by compiling adaptive-band alignment, which GenDRAM's hardware already supports.
4 Evaluation
4.1 Methodology
Platform. We evaluate on the GenDRAM cycle-accurate simulator [15], configured as its authors specify: a 32 GB, 1024-layer M3D stack in 8 tiers of 4 GB, from 2.29 to 22.88 ns, 16 channels, and 32 PUs (8 Search / 24 Compute) at 1 GHz. Compilation itself runs on AMD EPYC nodes (256 cores, 768 GB) under SLURM.
Workloads. For APSP we use dense instances of ca-GrQc (5,242 nodes) and p2p-Gnutella08 (6,301 nodes) [13], plus a 65,536-node road network from OpenStreetMap [16]. For genomics we align long reads of 2–10 kbp, generated by PBSIM [19], against GRCh38 [17] under two error models: PacBio (15%) and ONT 2D (30%). These are the datasets used to evaluate the GenDRAM hardware [15].
Baselines. Comparing only against a lowering without compiler support would overstate what the compiler contributes. We therefore evaluate four flows:
-
B0 – No compiler support. Direct lowering of the recurrence: no tiling, no tier awareness, one PU class.
-
B1 – Standard PIM pass. A standard affine pipeline with loop tiling (tuned ), vectorization, and bufferization, but no tier model, PU specialization, or communication synthesis.
-
B2 – Achievable bound. A performance ceiling: the 32-PU throughput limit for APSP, and wavefront critical-path bound for alignment. No implementation, hand-tuned included, can exceed it, so B3/B2 lower-bounds the fraction of that bound GenMLIR recovers automatically.
-
B3 – GenMLIR. The full pipeline of §3.
Speedups against B0 quantify how much the pass pipeline contributes; the ratio B3/B2 measures how close GenMLIR comes to the achievable bound.
4.2 Performance
Figure 3 reports speedup over B0, a lowering without compiler support (PU mapping kept; tiling, tier placement, and communication off). B1 is a standard affine-tiling compiler pass for PIM that we also implement (G3–G4 off); B2 is an achievable bound (32-PU throughput for APSP, wavefront critical-path for alignment), so B3/B2 lower-bounds the fraction of the achievable bound GenMLIR recovers automatically.
On APSP (Fig. 3a), B3 reaches 5.2, 5.2, and on ca-GrQc, p2p-Gnutella08, and OSM (geo-mean ), of the throughput bound and meeting it at OSM. The curve is flat by construction: every graph exposes far more than 32 blocks of per-phase parallelism, so all saturate the PU array, and B0 B3 isolates per-tile efficiency, a ratio independent of graph size. Size instead surfaces as memory capacity (§4.3).
On alignment (Fig. 3b,c), B3 grows with read length PacBio, ONT over ) and lies on the critical-path bound throughout (B3/B2= ): GenMLIR is optimal for the banded DP, as no schedule beats the anti-diagonal dependency. This is wavefront scaling (band work length, sweep length); the 2 kbp point is lowest as a short read has too few diagonals to amortize the wavefront barrier, and ONT's wider band ( vs. error) exposes more parallelism than PacBio. Throughout, B3 beats the standard affine-tiling PIM pass B1 by , the gain from tier-aware placement and communication a size-agnostic pipeline forgoes.
4.3 Memory Behavior
Figure 4(a) reports DRAM traffic measured by replaying the blocked Floyd-Warshall op stream through an LRU cache the size of the PU's on-chip SRAM, counting fetches and dirty write-backs. Traffic tracks the trend but tile reuse holds it below the closed-form model, and the working set hits a hard capacity wall: at the three-tile working set exceeds the 768 KB budget, so is both the traffic-minimizing and the largest feasible tile the compiler can pick (Eq. (3)). At , tiling cuts APSP traffic versus the untiled baseline; the already-local alignment DP sees (Table 2).
Figure 4b shows the placement G3 emits for the genomics pipeline. Ranking objects by criticality , it fills the fast tiers T0–T4 with
Table 2: Memory statistics for the OSM APSP and 10 kbp PacBio workloads.
| Metric | APSP (OSM) | Align (10 kbp) | ||
|---|---|---|---|---|
| B0 | B3 | B0 | B3 | |
| Off-chip DRAM traffic (GB) | 0.92 | 0.50 | ||
| Traffic reduction | 1× | 192× | 1× | 1.8× |
| Resident in fastest tier T0 (%) | 25.0 | 100.0 | 0.0 | 0.0 |
| Avg. memory latency (ns) | 37.4 | 34.6 | 55.1 | 43.7 |
Table 3: Programmer effort.
| Metric | APSP | Alignment |
|---|---|---|
| GenDSL source (LoC) | 4 | 9 |
| Hand-tuned mapping (LoC) | ~300 | ~500 |
the 17 GB of latency-critical PTR/CAL tables and spills the streaming reads and DP buffers across the slower tiers T4–T7. The distance matrix behaves analogously: B3 keeps the reused pivot working set in T0, whereas the untiled baseline holds only 25% of its 16 GB footprint there, so average access latency drops from 37.4 to 34.6 ns. For alignment, where the tiering deliberately trades the latency of the scoring matrix H for that of the PTR/CAL tables, B3 places H at tier 4 (43.7 ns) against tier 7 (55.1 ns) untiered (Table 2).
4.4 Compilation Cost and Programmability
Figure 5(a) reports compile time normalized to end-to-end runtime, Table 3 the input the programmer writes. Compilation is a fraction of runtime for every workload, orders of magnitude below the synthesis cycle an HLS flow like DP-HLS [5] needs, since the compiler runs once and amortizes over the whole execution. Figure 5(b) attributes it: the back-end is , but this is command-stream emission, not lowering effort. The compiler serializes a separate command program per PU, so the stage is bounded by writing the 32 per-PU streams out; the front-end and mid-end passes work in memory on compact IR and are cheap.
On programmability, blocked APSP is 4 lines of GenDSL and alignment 9, against an estimated and lines for the equivalent hand-written device-level mapping, nearly two orders of magnitude. That saving comes from the abstraction, not the engineering: adding a new semi-ring (widest-path, Table 1) took 5 lines and no new passes, since tiling, placement, PU assignment, and communication are all independent of the operator pair. Only APSP and alignment are evaluated end-to-end because the GenDRAM hardware provides kernels for these two alone; the compiler handles all seven through the same passes with only the operator-pair change above, so the limit is the hardware's coverage, not the compiler's reach.
4.5 Discussion
The two workloads exercise GenDRAM oppositely, APSP as synchronized broadcast phases over a dense matrix and alignment as an asynchronous producer–consumer pipeline, yet both are the same dp.grid_update lowered by the same passes, diverging only at mode selection. That is the claim the evaluation supports: the semi-ring abstraction is sufficient structure for a compiler to derive a tile size, memory layout, PU assignment, and communication
(a) APSP

(b) PacBio
(c) ONT 2D
B0 (baseline) B1 (generic affine) B2 (achievable bound) B3 (GenMLIR)
Figure 3: Speedup over a lowering without compiler support (B0). B1: standard affine-tiling PIM pass; B2: achievable bound (32-PU throughput for APSP, wavefront critical-path for alignment); B3: GenMLIR. (a) APSP over three graphs: B3 reaches 90% of the bound, meeting it at OSM. (b,c) Alignment vs. read length: B3 lies on the critical-path bound throughout, gains growing with length.
(a) APSP DRAM traffic (measured)

(b) Tier placement (genomics)
Figure 4: Memory analysis. (a) Measured blocked-APSP DRAM traffic (SRAM-sized LRU replay; dashed = model): reuse holds it below the model, and the three-tile working set exceeds SRAM past . (b) G3 fills the fast tiers (T0–T4) with the ~17 GB of latency-critical PTR/CAL tables, the slower tiers with streaming reads and DP buffers.
schedule for non-uniform-latency hardware. The generated code reaches the achievable bound on both workloads, compiles in a negligible fraction of runtime, and takes nearly two orders of magnitude less source than a hand mapping, a new recurrence costing only a change of operator pair. Two limits deserve emphasis. First, our hand-tuned comparison is an achievable bound (Figure 3), not measured expert code, so a cycle-level baseline remains future work. Second, the abstraction excludes data-dependent schedules (§3.5), where production aligners live. Neither is a property of the IR design.
5 Conclusion
We presented GenMLIR, an MLIR compiler that lowers semi-ring dynamic programming recurrences onto tier-aware 3D-DRAM PIM. By making the recurrence, tile size, memory tier, owner PU, and
(a) Compilation vs. runtime

(b) Compile-time breakdown
Figure 5: Compilation cost, normalized to end-to-end runtime. (a) Total compile time is a fraction of runtime, since the compiler runs once and amortizes over the full execution (OSM APSP; a 1.5 M-read genomics run). (b) Command-stream emission dominates the compile time ( ).
communication schedule explicit in the IR, it derives the handwritten mapping from a short specification: recovering the capacity-optimal tile size analytically, deriving a tier placement that reaches near the performance ceiling, and beating a standard affine-tiling PIM pass by 1.2–1.4×, and up to 5.8× (APSP) and 16.7× (alignment) over a lowering without compiler support.
Acknowledgments
This work was supported in part by PRISM and CoCoSys, centers in JUMP 2.0, an SRC program sponsored by DARPA (SRC grant number 2023-JU-3135). This work was also supported by NSF grants #2003279, #1911095, #2112167, #2052809, #2112665, #2120019, and #2211386.
References
[1] Junwhan Ahn, Sungjoo Yoo, Onur Mutlu, and Kiyoung Choi. 2015. A Scalable Processing-in-Memory Accelerator for Parallel Graph Processing. In Proc. Int. Symp. Computer Architecture (ISCA).
[2] Russel Arbore, Xavier Routh, Abdul Rafae Noor, Akash Kothari, Haichao Yang, Weihong Xu, Sumukh Pinge, Minxuan Zhou, Tajana Rosing, and Vikram Adve. 2025. HPVM-HDC: A Heterogeneous Programming System for Accelerating Hyperdimensional Computing. In Proc. Int. Symp. Computer Architecture (ISCA). 1342–1355.
[3] Betul Buyukkurt and Walid A. Najjar. 2008. Compiler Generated Systolic Arrays for Wavefront Algorithm Acceleration on FPGAs. In Proc. Int. Conf. Field Programmable Logic and Applications (FPL). 655–658.
[4] Damla Senol Cali, Gurpreet S. Kalsi, Zulal Bingöl, Can Firtina, Lavanya Subramanian, Jeremie S. Kim, Rachata Ausavarungnirun, Mohammed Alser, Juan Gomez-Luna, Amirali Boroumand, et al. 2020. GenASM: A High-Performance, Low-Power Approximate String Matching Acceleration Framework for Genome Sequence Analysis. In Proc. Int. Symp. Microarchitecture (MICRO). 951–966.
[5] Yingqi Cao, Anshu Gupta, Jason Liang, and Yatish Turakhia. 2024. DP-HLS: A High-Level Synthesis Framework for Accelerating Dynamic Programming Algorithms in Bioinformatics. arXiv preprint arXiv:2411.03398 (2024).
[6] Tianqi Chen, Thierry Moreau, Ziheng Jiang, Lianmin Zheng, Eddie Yan, Haichen Shen, Meghan Cowan, Leyuan Wang, Yuwei Hu, Luis Ceze, Carlos Guestrin, and Arvind Krishnamurthy. 2018. TVM: An Automated End-to-End Optimizing Compiler for Deep Learning. In Proc. USENIX Symp. Operating Systems Design and Implementation (OSDI).
[7] Guohao Dai, Tianhao Huang, Yuze Chi, Jishen Zhao, Guangyu Sun, Yongpan Liu, Yu Wang, Yuan Xie, and Huazhong Yang. 2018. GraphH: A Processing-in-Memory Architecture for Large-Scale Graph Processing. IEEE Trans. Computer-Aided Design of Integrated Circuits and Systems (TCAD) (2018).
[8] William J. Dally, Yatish Turakhia, and Song Han. 2020. Domain-Specific Hardware Accelerators. Commun. ACM 63, 7 (2020), 48–57.
[9] Max Doblas, Oscar Lostes-Cazorla, Quim Aguado-Puig, Nicholas Cebry, Pau Fontova-Musté, Christopher Batten, Santiago Marco-Sola, and Miquel Moretó. 2023. GMX: Instruction Set Extensions for Fast, Scalable, and Efficient Genome Sequence Alignment. In Proc. Int. Symp. Microarchitecture (MICRO). 1466–1480.
[10] Yufeng Gu, Arun Subramaniyan, Tim Dunn, Alireza Khadem, Kuan-Yu Chen, Somnath Paul, Md Vasimuddin, Sanchit Misra, David Blaauw, Satish Narayanasamy, and Reetuparna Das. 2023. GenDP: A Framework of Dynamic Programming Acceleration for Genome Sequencing Analysis. In Proc. Int. Symp. Computer Architecture (ISCA).
[11] Jeremy Kepner, Peter Aaltonen, David Bader, Aydin Buluç, Franz Franchetti, John Gilbert, Dylan Hutchison, Manoj Kumar, Andrew Lumsdaine, Henning Meyerhenke, et al. 2016. Mathematical Foundations of the GraphBLAS. In Proc. IEEE High Performance Extreme Computing Conf. (HPEC).
[12] Chris Lattner, Mehdi Amini, Uday Bondhugula, Albert Cohen, Andy Davis, Jacques Pienaar, River Riddle, Tatiana Shpeisman, Nicolas Vasilache, and Oleksandr Zinenko. 2021. MLIR: Scaling Compiler Infrastructure for Domain Specific Computation. In Proc. Int. Symp. Code Generation and Optimization (CGO).
[13] Jure Leskovec and Andrej Krevl. 2014. SNAP Datasets: Stanford Large Network Dataset Collection. http://snap.stanford.edu/data.
[14] Heng Li. 2018. Minimap2: Pairwise Alignment for Nucleotide Sequences. Bioinformatics 34, 18 (2018), 3094–3100.
[15] Tsung-Han Lu, Weihong Xu, and Tajana Rosing. 2026. GenDRAM: Hardware-Software Co-Design of General Platform in DRAM. arXiv preprint arXiv:2602.23828 (2026).
[16] Peter Mooney, Marco Minghini, et al. 2017. A Review of OpenStreetMap Data. In Mapping and the Citizen Sensor. Ubiquity Press, 37–59.
[17] National Center for Biotechnology Information. 2013. Genome Reference Consortium Human Build 38 (GRCh38). https://www.ncbi.nlm.nih.gov/assembly/GCF_000001405.26.
[18] Zubair Nawaz, Todor Stefanov, and Koen Bertels. 2009. Efficient Hardware Generation for Dynamic Programming Problems. In Proc. Int. Conf. Field-Programmable Technology (FPT). 348–352.
[19] Yutaka Ono, Kiyoshi Asai, and Michiaki Hamada. 2013. PBSIM: PacBio Reads Simulator—Toward Accurate Genome Assembly. Bioinformatics 29, 1 (2013), 119–121.
[20] Yue Pan, Zihan Xia, Po-Kai Hsu, et al. 2025. Stratum: System-Hardware Co-Design with Tiered Monolithic 3D-Stackable DRAM for Efficient MoE Serving. arXiv preprint arXiv:2510.05245 (2025).
[21] 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. In Proc. ACM Conf. Programming Language Design and Implementation (PLDI).
[22] Frans Skarman, Oscar Gustafsson, Daniel Jung, and Mattias Krysander. 2020. A Tool to Enable FPGA-Accelerated Dynamic Programming for Energy Management of Hybrid Electric Vehicles. IFAC-PapersOnLine 53, 2 (2020), 15104–15109.
[23] Yatish Turakhia, Sneha D. Goenka, Gill Bejerano, and William J. Dally. 2019. Darwin-WGA: A Co-processor Provides Increased Sensitivity in Whole Genome Alignments with High Speedup. In Proc. Int. Symp. High Performance Computer Architecture (HPCA). 359–372.
[24] Weihong Xu, Saransh Gupta, Niema Moshiri, and Tajana Šimunić Rosing. 2023. RAPIDx: High-Performance ReRAM Processing In-Memory Accelerator for Sequence Alignment. IEEE Trans. Computer-Aided Design of Integrated Circuits and Systems (TCAD) 42, 10 (2023), 3275–3288.