arXiv:2611.05751cs.ARNov 2026

Manuscript Offprint

arXiv:2611.05751

Scheduling Data to Compute: Hierarchical Data Pipelining for LLM Training on AMD GPUs

Gengyu Rao, Ghadeer Ahmed H Alabandi, Su Ann Chong, Thomas Huber, Kailash Gogineni, Subhajit Dutta Chowdhury, Saleel Kudchadker, Suchita Pati, Zirui Zhang, Zhen Huang, Yanyuan Qin, Xiaoming Peng, Lihuan Zhang, Botao Hu, Wei Huang, Yang Bo, Wen Xie, Xiangyu Zhao, Ruibin Zhang, Xiaobo Chen, Vidushi Goyal, Anshu Raina, Claire Songhyun Lee, Jiakun Yan, Yao Fu, Nusrat Islam, Ravi Dwivedula, Jie Zhang, Maria Garzaran, Zhenyu Gu, Emad Barsoum

Gengyu Rao, Ghadeer Ahmed H Alabandi, Su Ann Chong, Thomas Huber, Kailash Gogineni, Subhajit Dutta Chowdhury, Saleel Kudchadker, Suchita Pati, Zirui Zhang, Zhen Huang, Yanyuan Qin, Xiaoming Peng, Lihuan Zhang, Botao Hu, Wei Huang, Yang Bo, Wen Xie, Xiangyu Zhao, Ruibin Zhang, Xiaobo Chen, Vidushi Goyal, Anshu Raina, Claire Songhyun Lee, Jiakun Yan, Yao Fu, Nusrat Islam, Ravi Dwivedula, Jie Zhang, Maria Garzaran, Zhenyu Gu, Emad Barsoum

Advanced Micro Devices, Inc.

lorrirao@amd.com

Abstract

Large language models (LLM) have been the key focus of recent machine learning breakthroughs. As the model size grows exponentially, the computation needed for training is astronomical. A GPU can do a huge amount of arithmetic. However, the data its compute units need is not always available when they are ready. This data may still be in slow memory or on another GPU. While the chip waits, expensive compute sits idle, and at scale even a small drop in utilization translates into substantial cost. In this paper, we treat this waiting time as the primary bottleneck. We focus on hardware features designed for explicit data movement. These features load data from off-chip memory onto the chip, rearrange it into the layout the computation requires as it is loaded, and transfer it between GPUs. By orchestrating them, we keep a steady pipeline of data flowing to the compute units so that they remain busy.

We present kernel and framework implementations that address this bottleneck using three key data-movement instructions and hardware features. The Tensor Data Mover (TDM) moves tensor data from high-bandwidth memory (HBM) into on-chip memory. Transpose-load instructions transpose tensor data into the layout that LLM computations require as it is loaded on-chip. Finally, System DMA (SDMA) and Remote DMA (RDMA) move data between GPUs over the scale-up and scale-out networks, respectively. Our results show that TDM and transpose-load provide on average 1.88× and 1.19× speedup at the kernel level, respectively. The SDMA and RDMA lead to on average 1.16× and 1.33× speedup for computation overlapped with communication. This is the first AMD LLM training system to utilize all the GPU data pipelining features. Our implementation has been integrated into open source framework and library for AMD GPUs. https://github.com/AMD-AGI/Primus-Turbo https://github.com/AMD-AGI/Primus

1 Introduction

Recent years have witnessed an exponential surge in LLMs. People are training larger and larger models with an unprecedented amount of data. As the training grows exponentially, the amount of computation needed is unprecedented in human history. People are building larger and larger GPU clusters to train LLM models, due to both the model size and the amount of computation. There have been many reports on GPU under-utilization in the industry [13, 18, 19]. For hyper-scale users, even one percent of efficiency can mean millions of dollars. From a hardware perspective,

Rao et al.

under-utilization can arise from several sources, including hardware failures [15], power constraints [30], and data-movement overheads [14, 27], which become increasingly significant as models and distributed training systems scale.

In this paper, we focus on data-movement overhead as a source of GPU under-utilization. Within a GPU, compute units may stall while waiting for data or spend execution resources moving and transforming it. Across GPUs, communication may consume compute resources or delay dependent computation. We consider these two cases separately as intra-GPU and inter-GPU data movement.

Intra-GPU data movement. Traditional GPU programming emphasizes that GPUs hide long memory-access latency through inexpensive thread switching, i.e., scheduling more threads than the hardware can execute at once [26]. In recent years, however, software-managed data pipelines have become an increasingly important complementary approach to latency hiding.

A key driving force behind this shift is the co-evolution of GPU hardware architectures and kernel algorithm design. Consider attention kernels, underpinning the Transformer architectures central to recent breakthroughs in large language models (LLMs) [25]. Modern high-performance attention kernels largely follow the approach introduced by FlashAttention [11]: keeping the softmax state and output accumulators on-chip while streaming key and value tiles from memory. Although this approach avoids materializing the full attention matrix and significantly reduces global memory traffic, it introduces a new performance challenge of efficiently orchestrating data movement between global and on-chip memory. In particular, attention computation requires fine-grained scheduling of KV tile loading, data transformation, and computation to prevent memory latency from stalling the execution units.

On older GPU architectures, transferring data into on-chip memory requires explicit load instructions executed by threads on the compute units. As a result, data movement competes with computation for execution resources. While one group of threads waits for memory operations to complete, another group performs useful computation. However, this approach becomes increasingly challenging for attention kernels, where limited on-chip memory capacity and frequent data transfers demand tighter coordination between memory operations and computation.

Recent GPU architectures are beginning to address this challenge. For example, AMD's MI455 introduces the Tensor Data Mover (TDM), which moves data between HBM and on-chip memory. This not only allows software-managed data pipelines to be offloaded to hardware DMA engine, but also introduces new fine grain instruction set architecture (ISA) to coordinate between memory transfer and computation, fundamentally changing the optimization target from "launch enough threads to hide a high-latency load" to "build a steady stream that keeps the compute units fed."

A similar trend can be observed in data transformation. During LLM training, tensors frequently require different layouts for forward and backward computations, making matrix transposition an important source of overhead. On MI355, specialized matrix-transpose instructions allow data to be transposed during loading, eliminating the need for explicit register-level transposition by the compute units [1].

We will detail our implementation and the performance impact of these ISA changes in Section 3.1. Our implementation shows that matrix transpose leads to on average 1.19×1.19\times and up to 1.21×1.21\times. TDM leads to on average 1.88×1.88\times and up to 2.74×2.74\times.

Inter-GPU data movement. As large-scale LLM training expands to thousands of GPUs, inter-GPU data movement has become an increasingly important performance bottleneck. At first glance, overlapping communication with computation appears straightforward: ideally, network transfers proceed concurrently with GPU computation, achieving both high network bandwidth and high compute utilization. In practice, however, communication and computation often compete for the same GPU execution resources, making effective overlap much more challenging.

For example, traditional RCCL-based communication from AMD can occupy up to 64 compute

Rao et al.

units (CUs), corresponding to 25% of the compute resources on MI355. Consequently, even when communication is fully overlapped with computation, we can observe significant slowdown in compute throughput. This reveals a fundamental limitation of conventional GPU-driven communication: hiding communication latency does not necessarily eliminate its computational overhead.

One possible workaround is to increase the local batch size, thereby performing more computation per communication operation and amortizing communication overhead. However, this approach conflicts with the growing demand for faster distributed training. For customers renting GPU clusters in the cloud, time-to-train is often as important as overall hardware efficiency. For example, assuming near-linear scaling, training a model on more than 2,000 GPUs in two months may be preferable to training it on 1,000 GPUs over four months. Achieving such scaling requires maintaining high efficiency at smaller per-GPU batch sizes, where communication accounts for a larger fraction of execution time. Therefore, simply increasing the amount of local computation is not always a viable solution.

To address this challenge, AMD GPUs and Network Interface Cards (NICs) provide dedicated DMA engines for inter-GPU data movement, including System DMA (SDMA) and Remote DMA (RDMA). Unlike traditional communication kernels that consume GPU compute resources, these engines enable data transfers to proceed independently of the compute units, creating opportunities for more effective communication-computation overlap. To make these capabilities accessible, we have been introducing lightweight, DMA-based communication APIs across multiple layers of the ROCm software stack. These APIs expose dedicated data-movement engines through programmer-friendly interfaces, supporting both high-level collective operations in PyTorch and low-level, customized communication implementations.

We will provide detailed evaluation of overlapping overhead in Section 4.4 and detail our hardware support and software API in Section 3. Our results show that System and Remote DMA based optimization leads to on average 1.16× and 1.33× of overlapped computation with communication.