TL;DR
GPU-Tile-Sim (GTSim) is a novel, tile-centric GPU simulation framework designed to accurately model modern Large Language Model (LLM) workloads for hardware-software co-design. By abstracting kernel execution into a warp-level dependency graph rather than simulating individual instructions, GTSim achieves high accuracy (1.22%–8.71% error) while running roughly 4× faster than traditional cycle-accurate simulators.
What Problem Does This Paper Address?
To squeeze maximum performance out of GPUs, modern LLM libraries rely on highly optimized, custom-fused kernels (like FlashAttention). These kernels exploit cutting-edge hardware features such as asynchronous data movement accelerators (TMA) and on-chip shared memory clusters. As a result, execution time is no longer dominated by individual instruction latencies; instead, it is governed by complex data dependencies, software pipelining, and warp specialization—where different groups of warps are dedicated solely to memory loading or matrix math.
Existing performance models fail to balance fidelity and speed for these modern workloads:
- Instruction-driven simulators (e.g., Accel-Sim) provide high fidelity but are painfully slow and require massive engineering efforts to update for every new GPU generation (like Hopper or Blackwell).
- Analytical or mapping-based models (e.g., TileFlow) are fast but too coarse to capture the intricate, asynchronous coordination and warp-level scheduling of modern fused kernels.
GTSim bridges this gap by focusing on the structural dependencies of execution rather than low-level instruction streams.
Methods
The core innovation of GTSim is representing GPU kernel execution as a warp-centric tile graph.
The framework consists of two main components:
- Automatic Tile-Graph Frontend: This component ingests a tile-based Domain-Specific Language (DSL)—specifically TileLang IR—after software pipelining and warp specialization have been applied, but before lowering to instructions. It automatically extracts a directed acyclic graph (DAG) where nodes represent warp-level tile operations (e.g., loading a matrix tile, performing a tensor core MMA) and edges encode dataflow and execution ordering constraints (like synchronization barriers or buffer reuse).
- Graph-Driven Simulation Backend: Instead of simulating a complex hardware instruction pipeline cycle-by-cycle, the backend directly schedules ready nodes from the tile graph. It uses throughput-oriented abstractions to model compute pipelines, memory hierarchies, and the on-chip Network-on-Chip (NoC) for distributed shared memory.
Datasets
The framework was evaluated using representative, performance-critical LLM execution blocks rather than standard static datasets:
- GEMM Kernels: Standard matrix multiplication, fused GEMM + SiLU, and low-precision FP8 GEMM.
- Attention Mechanisms: FlashAttention-3, Flash-Decoding, and FlashMLA.
- End-to-End Workloads: Full decoder-layer inference workloads (both prefill and decode stages) based on the Llama-3-8B model architecture.
- Hardware Targets: Validated against physical NVIDIA Ampere (A100) and Hopper (H100) GPUs, with an architectural extension to Blackwell (B200).
Key Insights and Ideas
- Dependency Over Latency: The foundational insight is that modern GPU performance is a structural problem of scheduling and overlap, not an instruction-counting problem. Capturing the coordination structure yields instruction-level accuracy at a fraction of the simulation cost.
- Warp-Centric Granularity is the Sweet Spot: Thread-level simulation introduces unnecessary complexity, while block-level simulation hides warp specialization. Tracking execution at the warp level perfectly captures heterogeneous roles (producers vs. consumers) while keeping the graph size lightweight.
- Architectural Extensibility: Because GTSim avoids low-level instruction decoding, adapting it to a brand-new architecture like NVIDIA Blackwell required modifying only 11.3% of the simulator core—primarily just adding new node types for Tensor Memory (TMEM) accesses.
Key Results
- High Accuracy: Across A100 and H100 GPUs, GTSim achieved a Mean Absolute Percentage Error (MAPE) of 1.22% to 8.71% compared to real hardware. It consistently outperformed prior analytical models (TileFlow and LLMCompass), which often showed errors exceeding 30% (and sometimes 100%) on complex attention kernels.
- Simulation Speedup: GTSim runs 3.48× to 4.60× faster (averaging ~4×) than the state-of-the-art instruction-driven simulator Accel-Sim, while maintaining comparable accuracy.
- Hardware-Software Co-Design Utility: Using GTSim, the authors demonstrated that the upcoming Blackwell architecture heavily favors larger tile sizes and deeper pipeline decoupling to keep its massive Tensor Core throughput fully utilized.
Limitations and Future Work
- Single-GPU Focus: GTSim currently targets single-GPU kernel execution and does not simulate inter-GPU network communication (e.g., NVLink or InfiniBand) required for multi-GPU distributed training or inference.
- Frontend Dependency: The automated path currently relies on TileLang IR. While conceptually extensible to Triton or structured CUDA, frontends for those languages are left for future work.
- Blackwell Validation: Due to limited physical hardware availability at the time of writing, the Blackwell (B200) evaluation relies on preliminary validation against published paper figures rather than extensive local microbenchmarking.
Summary updated