arXiv:2610.23767cs.AROct 2026

Manuscript Offprint

arXiv:2610.23767

TileDRAM: Compiler-Controlled Tile-to-DRAM Layouts for 3D DRAM GPGPUs

Guangyuan Xu, Lanxuan Zhang, Ziyang Li, Zhaoshi Li, Yajun Ha

Guangyuan Xu

ShanghaiTech University

Shanghai, China

xugy12025@shanghaitech.edu.cn

Lanxuan Zhang

ShanghaiTech University

Shanghai, China

zhanglx2024@shanghaitech.edu.cn

Ziyang Li

ShanghaiTech University

Shanghai, China

lizy12024@shanghaitech.edu.cn

Zhaoshi Li

MetaX Integrated Circuits (Shanghai)

Co., Ltd.

Shanghai, China

zhaoshi.li@metax-tech.com

Abstract

Modern GPU compilers expose rich layout abstractions for mapping tensors to threads and on-chip resources, but compute-unit-local (CU-local) 3D DRAM architectures lack a corresponding abstraction for specifying how operand-tile data are arranged within the DRAM address space. Without such an abstraction, conventional placement under the existing DRAM address mapping can subject structured tile accesses to severe row-buffer conflicts.

We present TileDRAM, a compiler–runtime toolchain that introduces tile-to-DRAM layouts as a compiler-visible abstraction for DRAM placement. TileDRAM extends the GPU Linear Layout abstraction from compute-side mapping targets to DRAM placement coordinates and selects layouts per tile access signature, using recurring tile-local access behavior as the specialization unit. Since row-buffer locality depends on ordered request history, TileDRAM evaluates candidate layouts through their row-buffer behavior under fixed DRAM address mappings. Accesses under the selected layouts are realized through ordinary address arithmetic, without new address-remapping hardware or ISA support.

In full-trace replay on Accel-Sim/Ramulator2 across 108 MoE FFN cases, TileDRAM reduces the request-weighted row-conflict rate from 75.7% to 15.2% and achieves a 1.77× geomean speedup. Retargeting six traces to six 3D DRAM organizations yields a 2.20× geomean speedup under the same compiler abstraction. On an RTX 3090, address transformation adds 0.17% geomean overhead over identity.

1 Introduction

Memory bandwidth is a first-order system constraint in LLM inference. The pressure is most acute in feed-forward network (FFN) layers, where dense matrix projections dominate data movement at small batch sizes. In mixture-of-experts (MoE) models, routing activates only a few experts per token, yet each activated expert still performs dense projections over activation and weight tensors [4, 45]. On GPUs,

Yajun Ha

ShanghaiTech University

Shanghai, China

hayj@shanghaitech.edu.cn

Figure

(a) Physical Structure per CU

(c) Tile-to-DRAM layout determines row-buffer locality

(b) Architecture Abstraction per CU

Figure 1. CU-local 3D DRAM architecture and tile-to-DRAM layout. (a) Hybrid-bonded DRAM stack and logic die. (b) One CU-stack pair connected through a local memory controller. (c) Row-buffer behavior under the conventional and TileDRAM layouts, showing how layout choice changes the resulting row-buffer locality.

these projections execute as grouped or batched tiled general matrix multiplications (GEMMs), whose thread blocks repeatedly fetch operand tiles as they advance along the reduction (K) dimension. These structured tile streams make high-bandwidth 3D DRAM an attractive substrate.

Prior 3D DRAM systems motivate two representative chip-wide abstractions for GPGPUs: using 3D DRAM as the GPU's global memory [16, 38] or as a GPU-wide last-level cache (LLC) [20, 54]. Using the stack as GPU global memory routes its bandwidth through the package-level endpoint instead of delivering the stack's high local bandwidth directly, while the LLC abstraction pays network-on-chip (NoC) area and power to distribute that local bandwidth GPU-wide [12]. We instead focus on the compute-unit-local (CU-local) organization motivated in Section 2.1, where each CU accesses its nearby 3D DRAM stack through a software-managed address-space aperture served by a local memory controller.

However, this high-bandwidth local path also subjects operand request streams directly to the DRAM controller. Without warp-level request coalescing and traffic attenuation through the on-chip caches, numerous fine-grained and potentially redundant memory requests can propagate to the DRAM subsystem, substantially amplifying contention among concurrent memory requests, and ultimately reducing the effective memory bandwidth available to the application. DRAM service efficiency therefore depends on the row-buffer locality of the resulting row-access sequence.

This dependence on DRAM placement reveals a missing abstraction between compiler-visible tile semantics and DRAM placement: a tile-to-DRAM layout that defines how operand-tile data are arranged within the DRAM address space. Under a fixed DRAM address mapping, the tile-to-DRAM layout determines the physical address stream presented to the memory controller and thereby governs the row-buffer locality of DRAM accesses (Figure 1).

Across our 108 full-trace MoE FFN cases, conventional placement under the fixed DRAM address mapping yields a 75.7% request-weighted row-conflict rate: successive accesses to the same row buffer target different rows, each paying a precharge and an activation.

Modern GPU software stacks offer rich tile-level abstractions for compute-side layout and data movement, but provide no corresponding abstraction for DRAM placement. Triton, CUTLASS, and CuTe provide tiled programming and layout abstractions [2, 31, 48], while cuTile, CuTe DSL, TileLang, and Gluon expose tiles directly in their programming abstractions [5, 29, 30, 35, 50]. Linear Layouts provide a formal representation of distributed tensor layouts as linear maps between labeled vector spaces over F2F_2 [55]. Across these systems, the operand tile is already an established compiler-visible unit for specifying layout and data movement. However, these abstractions stop at the compute side: they determine how tile data map to threads, registers, and shared memory, but not how operand-tile data are arranged within the DRAM address space. DRAM placement therefore remains outside the compiler's tile-level layout abstraction.

Prior work improves row-buffer locality by modifying the DRAM address mapping in the memory controller [19, 43, 52]. Application-specific synthesis can optimize one global mapping for a representative workload trace [43], but that mapping must therefore accommodate the heterogeneous access patterns within the trace (Section 2.3). Independently specializing these patterns at the controller side would require maintaining multiple mapping contexts and selecting the appropriate context for each request [52].

Taken together, these observations yield two key insights. First, CU-local integration provides high local bandwidth, but compiler-awareness of DRAM placement is necessary to fully utilize the bandwidth. Placement should therefore become an explicit compiler-controlled decision. Second, we identify recurring tile-local access behavior as a stable unit for specializing placement. This granularity also aligns naturally with existing GPU software abstractions, where operand tiles are already compiler-visible units for layout and data movement.

Guided by these insights, we propose TileDRAM, a compiler–runtime toolchain that introduces tile-to-DRAM layouts as a compiler-visible abstraction for compiler-controlled DRAM placement. TileDRAM represents this abstraction as tile-to-DRAM Linear Layouts: reusable F2F_{2}-linear maps that extend the Linear Layout abstraction from compute-side resources to DRAM placement coordinates. Each layout maps logical operand-tile coordinates to DRAM placement coordinates.

Although access behavior varies with operand properties and tile configurations, the same ordered tile-local access behavior recurs across many tile instances. TileDRAM captures this with a tile access signature that combines tile configuration, operand properties, and the ordered tile-local access sequence. The tile-to-DRAM mapping itself is stateless, with each tile coordinate mapped without reference to access history. However, the induced row-buffer behavior is stateful, because whether a request hits an open row depends on preceding requests in the ordered tile-local access sequence. TileDRAM therefore evaluates candidate layouts by simulating row-buffer state transitions under each signature's ordered access, selecting the layout with the fewest row conflicts.

An offline solver selects reusable layouts for each tile access signature; the compiler applies them during address generation, and the runtime supplies each tile's placement without new address-remapping hardware or ISA support. Retargeting to different 3D DRAM organizations reselects layouts while reusing the same abstraction and compilation path.

Using NVBit traces of Triton/Gluon kernels [35, 48, 49] replayed with Accel-Sim/Ramulator2 [14, 21], TileDRAM reduces the request-weighted row-conflict rate from 75.7% to 15.2% and achieves a 1.77×1.77\times geomean kernel speedup across 108 MoE FFN cases. Across six full-trace streams retargeted to six 3D DRAM organizations, TileDRAM reduces row conflicts by 79.2% and achieves a 2.20×2.20\times geomean speedup. On an NVIDIA GeForce RTX 3090, address transformation adds 0.17% geomean overhead over identity across the 108 measured kernel configurations. Together, these results establish compiler-controlled DRAM placement as a new optimization dimension: with the DRAM address mapping left unchanged, the compiler-selected layout alone accounts for the gain.

Our main contributions can be summarized as follows:

• We introduce tile-to-DRAM layouts as a compiler-visible abstraction for DRAM placement, and represent them as tile-to-DRAM Linear Layouts: F2F_{2}-linear maps that extend GPU Linear Layouts from compute-side resources to DRAM placement coordinates, with tile access signatures as their stable specialization unit.

  • We characterize the row-buffer locality impact of conventional DRAM placement in CU-local 3D DRAM GPGPUs. Across 108 full-trace MoE FFN cases, conventional placement yields a 75.7% request-weighted row-conflict rate, showing that high local bandwidth alone does not ensure efficient DRAM service.

• We present TileDRAM, a compiler–runtime toolchain that selects a layout per tile access signature, requiring neither address-remapping hardware nor ISA support.

  • We evaluate TileDRAM using a full-trace framework integrating Triton, Accel-Sim, and Ramulator2 across 108 MoE FFN cases plus a six-stream, six-organization retargeting sweep. TileDRAM consistently reduces row conflicts, improves performance, and incurs only 0.17% geomean address-transformation overhead on an RTX 3090.

References (12)