The engineering behind inference.Contact ↗
Batch & Release/Inference

GPU-Initiated SDMA Copy Engines in RCCL and rocSHMEM

AMD engineers describe GPU-initiated SDMA copy engines in RCCL and rocSHMEM, which offload intra-node data movement from compute units to dedicated DMA engines, freeing CUs for computation while maintaining or exceeding bandwidth on MI350X systems.

GPU-Initiated SDMA Copy Engines in RCCL and rocSHMEM
Image: AMD ↗

AMD engineers from the collectives team describe GPU-initiated SDMA (System DMA) copy engines for intra-node data movement in RCCL and rocSHMEM, available from ROCm 10.1. The approach lets a running GPU kernel issue copy commands to dedicated SDMA engines instead of having compute units (CUs) execute load/store instructions for the transfer. On AMD Instinct MI350X hardware, the team reports that GPU-initiated SDMA achieves bandwidth comparable to or higher than traditional implementations while using a single CU instead of 64.

What Changes for Communication Kernels

Three transfer approaches are compared in the post. GPU load/store communication has a GPU kernel initiate the transfer and CUs execute the copying work. Host-initiated SDMA has the CPU initiate and SDMA engines move the data, with CUs not executing the copy. GPU-initiated SDMA has a GPU kernel initiate and SDMA engines perform the movement, while CUs issue commands and coordinate completion.

The key difference in the new release is that GPU-initiated communication within the scale-up domain can now leverage SDMA engines rather than compute units. AMD GPUs carry enough SDMA engines to saturate available scale-up bandwidth. In conventional fused compute-and-communication kernels, CUs service both computation and data transfer, creating contention. Offloading communication to SDMA engines through GPU-initiated commands leaves compute resources fully available for the computational portion of the kernel, and the approach can saturate bandwidth using only the single CU required to issue SDMA commands.

Performance Results on MI350X

RCCL results compare three implementations for AlltoAll and AllGather: the default RCCL load/store implementation, host-initiated SDMA, and GPU-initiated SDMA. Host-SDMA and GIN-SDMA rely on symmetric memory registration, while the default does not. Tests ran on eight GPUs of an AMD Instinct MI350X node. For AlltoAll, the GIN-SDMA backend is used for message sizes greater than 32 MiB, with smaller sizes using vector load-store operations. For AllGather, GIN-SDMA is used for messages 512 KiB or larger. The team reports that GIN-SDMA delivers higher bandwidth than the default while using a single CU, compared to 64 CUs for the default RCCL algorithm.

rocSHMEM results cover an alltoall workload running on eight GPUs with a single CU, comparing SDMA enabled with one CU and one wavefront against SDMA disabled with one CU and 16 wavefronts. SDMA ON delivers significantly higher performance because a single CU cannot saturate available bandwidth using regular loads and stores. A putnbi benchmark between two GPUs shows that at 128 KiB, bandwidth with a single CU is similar whether SDMA is enabled or not, though more CUs with SDMA OFF can drive higher bandwidth at that size. For messages of 512 KiB or larger, SDMA ON delivers the highest bandwidth regardless of configuration. The current rocSHMEM implementation does not use SDMA for messages smaller than 128 KiB, so the four-wavefront configuration outperforms the single-wavefront one at 64 KiB, where the load/store path benefits from additional wavefronts. Once SDMA is used, a single CU with a single wavefront suffices for peak bandwidth.

Architecture and Availability

Each graphics compute die has multiple SDMA engines for copy operations. At a low level, an SDMA engine is a programmable DMA engine similar in spirit to an RDMA NIC, designed for inter-GPU communication within a node or pod. A ring buffer is populated with DMA commands such as linear copies, copies with fused signal, or atomic operations, and a doorbell mechanism triggers consumption of pending entries. For host-initiated operations, the hipMemcpyAsync API from the standard ROCm runtime abstracts this complexity. For device-initiated operations, RCCL-GIN and rocSHMEM prepare the SDMA packets internally.

The feature is available in RCCL and rocSHMEM from ROCm 10.1, built from source via GitHub. RCCL requires symmetric memory registration and cuMem enabled, with the SDMA backend selected through the NCCL_GIN_TYPE environment variable. rocSHMEM uses a build flag for SDMA and runtime parameters to enable it and set the message size threshold. Measurements were repeated between 5 and 7 times, with one set of results reported since outcomes were stable. RCCL tests used version 2.32.3-develop with HIP 7.0.51831 and ROCm 7.0.2.2.0 on a Quanta server with two AMD EPYC 9655 processors and 3 TB of system memory. rocSHMEM tests used version 3.8.0 with ROCm 10.1.0 on a Supermicro server with two AMD EPYC 9575F processors and 3 TB of memory.

Sources & references

AMD: GPU-Initiated DMA Copy Engines in RCCL and rocSHMEM ↗Source consulted: 2026-11-16

Privacy choices

We remember your answer in this browser for 180 days. Come back here whenever you want to change it.

EssentialSaves your answer in this browser. No cookies, no third parties.Always active