Kitsune: Enabling Dataflow Execution on GPUs

Michael Davies, Neal Clayton Crago, Karthikeyan Sankaralingam, Stephen W. KecklerarXiv 2025 · DOI

Abstract

Traditional GPU execution follows a Bulk-Synchronous Parallel (BSP) model, which often leads to significant overhead from off-chip memory traffic and hardware underutilization. We present Kitsune, a software-hardware co-design that transforms the GPU into a spatial dataflow engine. By utilizing on-chip ring queues for inter-kernel communication and a type-aware grid scheduler, Kitsune enables concurrent operator execution and achieves up to 2.4× speedups across diverse deep learning workloads while drastically reducing DRAM traffic.

Introduction

Despite their computational power, GPUs are currently constrained by the Bulk-Synchronous Parallel (BSP) programming model. In this paradigm, a kernel must complete its execution across the entire device before the subsequent kernel can begin. This sequential approach introduces three primary inefficiencies:

  1. The Memory Wall: Intermediate data often exceeds the capacity of on-chip shared memory but is too short-lived to justify the energy and latency costs of writing to DRAM.
  2. Resource Underutilization: Kernels typically saturate either standard math (SIMT) cores or specialized Tensor Cores, leaving the other idle.
  3. Fusion Limits: Existing "vertical fusion" techniques attempt to merge kernels but are limited by fixed per-core register and shared memory capacities, leading to performance-killing "spills" to DRAM.
Figure 1: Overview of GPU organization and the transition from BSP to Kitsune's spatial dataflow model.

Methods

Kitsune reimagines the GPU as a spatial dataflow engine through two core primitives:

Software-only Ring Queues

To bypass DRAM for inter-kernel communication, Kitsune implements synchronized ring buffers pinned in the L2 cache. Using GPU global atomics, thread blocks (CTAs) can "push" data tiles directly to the next stage of the pipeline. This allows for fine-grained producer-consumer execution without global synchronization barriers.

Type-Aware Grid Scheduling

Kitsune introduces a hardware modification to the GPU's global scheduler. Unlike traditional greedy schedulers, Kitsune's scheduler identifies whether a kernel is SIMT-heavy or TensorCore-heavy. It then intentionally pairs complementary kernels on the same Streaming Multiprocessor (SM) to maximize total hardware utilization.

Automated Compiler Backend

To facilitate adoption, the system includes a compiler backend for PyTorch Dynamo. It automatically identifies subgraphs suitable for dataflow execution and uses an Integer Linear Programming (ILP) solver to balance the load by allocating the optimal number of SMs to each pipeline stage.

Key Insights: Spatial vs. Temporal Fusion

A central insight of Kitsune is the superiority of spatial over temporal fusion. Traditional vertical fusion attempts to execute multiple operations within a single core (temporal), which often leads to resource exhaustion. In contrast, Kitsune distributes operations across different cores (spatial), leveraging the L2 cache as a high-speed communication hub. This approach allows the system to scale more effectively with increased SM counts and L2 bandwidth.

Figure 2: Comparison of Vertical Fusion versus Kitsune across different dataflow patterns, highlighting Kitsune's ability to parallelize reductions and avoid spilling live state.

Evaluation and Results

Kitsune was evaluated using the NVArchSim simulator (emulating an NVIDIA A100) across five high-demand applications: DLRM, MeshGraphNets, NeRF, GraphCast, and Llama 3 8B.

  • Performance: Kitsune achieved speedups of 1.3×–2.3× for inference and 1.1×–2.4× for training compared to standard PyTorch baselines.
  • Data Movement: Off-chip DRAM traffic was reduced by 41%–98% for inference. For NeRF, intermediate activation writes to DRAM were almost entirely eliminated.
  • Comparison to SOTA: Kitsune significantly outperformed state-of-the-art vertical fusion (e.g., TensorRT), particularly in training scenarios where complex backpropagation graphs typically hinder traditional fusion techniques.

Limitations and Future Work

While Kitsune automates graph selection and load balancing, the underlying CUDA kernels currently require manual modification to support the queue API. Future work will focus on automating this tiling logic. Additionally, the current static ILP-based scheduler could be evolved into a dynamic dataflow system to better handle models with conditional branching or variable sequence lengths. Finally, as the type-aware scheduler requires hardware-level changes, its immediate application is focused on future GPU architectures.

Summary updated

BibTeX
@misc{davies2025kitsune,
  author = {Michael Davies and Neal Clayton Crago and Karthikeyan Sankaralingam and Stephen W. Keckler},
  title = {{Kitsune: Enabling Dataflow Execution on GPUs}},
  year = {2025},
  eprint = {2502.18403},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.18403},
}
Figure