Inferensys

Glossary

GPUDirect RDMA

A technology enabling direct data transfer between a GPU's memory and a network interface card, bypassing system memory and the CPU to achieve ultra-low latency for distributed AI training.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
GPU INTERCONNECT TECHNOLOGY

What is GPUDirect RDMA?

GPUDirect RDMA is a technology that creates a direct data path between a GPU's memory and a network interface card, bypassing system memory and the CPU entirely to achieve ultra-low latency for distributed computing.

GPUDirect RDMA (Remote Direct Memory Access) is a foundational interconnect technology that enables a Network Interface Card (NIC) to read and write data directly to and from GPU device memory. By circumventing the host CPU and system buffer copies, it eliminates the traditional GPU → CPU Memory → NIC data path, drastically reducing communication overhead and latency in multi-node distributed AI training clusters.

This direct peripheral access is critical for scaling synchronous all-reduce operations across hundreds of interconnected nodes. Without GPUDirect RDMA, the CPU becomes a severe bottleneck, stalling the compute pipeline. The technology is a prerequisite for achieving near-linear scaling efficiency on NVIDIA InfiniBand or high-speed RoCE (RDMA over Converged Ethernet) fabrics in large language model training.

CORE MECHANISMS

Key Features of GPUDirect RDMA

GPUDirect RDMA eliminates the CPU and system memory from the critical path of inter-node GPU communication, enabling direct data transfers between GPU memory and network adapters for maximum distributed training throughput.

01

Direct GPU-to-Network Data Path

The foundational mechanism that allows a Network Interface Card (NIC) to read and write data directly to GPU device memory via the PCI Express bus. This bypasses the traditional bounce buffer in CPU system memory, eliminating a costly memory copy operation and freeing the CPU from acting as a data broker. The result is a zero-copy data path where the GPU's high-bandwidth memory (HBM) is directly exposed to the fabric.

02

Kernel Bypass and User-Space Networking

GPUDirect RDMA relies on RDMA-capable interconnects like InfiniBand or RoCE (RDMA over Converged Ethernet) that implement kernel bypass. Data transfers are initiated directly from user-space libraries (like NCCL or UCX) without invoking the operating system kernel. This avoids context switches and interrupt overhead, reducing per-transfer latency to sub-microsecond levels, which is critical for frequent gradient synchronization in distributed training.

03

NCCL Integration for Collective Operations

The NVIDIA Collective Communications Library (NCCL) natively leverages GPUDirect RDMA to execute collective operations like AllReduce, AllGather, and ReduceScatter directly between GPU memory regions across nodes. NCCL automatically detects the RDMA topology and selects the optimal data path, using GPUDirect RDMA for inter-node communication and NVLink for intra-node GPU-to-GPU transfers, forming a unified, high-speed communication domain.

04

Peer-to-Peer DMA Transactions

This feature enables a GPU on one node to issue Direct Memory Access (DMA) transactions directly to the memory of a GPU on a remote node through the RDMA NIC, without staging data in either system's main memory. This is achieved by mapping remote GPU memory into the local address space using PCIe peer-to-peer capabilities. The remote GPU's memory appears as a directly addressable target, enabling true distributed shared-memory semantics for accelerator clusters.

05

GDRCopy: CPU-Initiated Transfers

A complementary library that provides a low-latency mechanism for the CPU to read and write small amounts of data directly to GPU memory over the PCIe bus. While GPUDirect RDMA handles GPU-to-NIC transfers, GDRCopy is optimized for control-plane operations where the CPU needs to inject metadata, flags, or small control messages into GPU memory without the overhead of a full CUDA kernel launch or cudaMemcpy call.

06

Fabric-Agnostic Topology Discovery

GPUDirect RDMA is not tied to a single interconnect technology. It operates over InfiniBand, RoCE v2, and future fabrics that support the PCIe peer-to-peer and RDMA semantics. The underlying libraries perform automatic topology discovery to identify the NUMA affinity between GPUs and NICs, ensuring that each GPU communicates through the NIC attached to its local PCIe root complex, avoiding cross-socket traffic and maximizing bandwidth utilization.

GPUDIRECT RDMA

Frequently Asked Questions

Clear, technical answers to the most common questions about GPU-to-network direct memory access for distributed AI training.

GPUDirect RDMA is a technology that enables a direct data path between the memory of a GPU and a network interface card (NIC), bypassing the host system's CPU and main memory entirely. It works by allowing the NIC to directly read from and write to GPU memory using PCI Express peer-to-peer transactions and Remote Direct Memory Access (RDMA) protocols like InfiniBand or RoCE (RDMA over Converged Ethernet). Without GPUDirect RDMA, data moving from a GPU on one server to a GPU on another must first be copied by the GPU driver to a pinned system memory buffer, then copied again by the CPU to the NIC's transmit buffer. GPUDirect RDMA eliminates these intermediate copies, reducing end-to-end latency to as low as 1-2 microseconds for small messages and dramatically lowering CPU overhead during distributed training communication primitives like all-reduce.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.