Skip to content
WEKA
A stylized GPU transferring glowing data to a network device, with a CPU chip in the background.

GPUDirect RDMA: How It Works and More

GPUDirect RDMA moves data directly between GPU memory and RDMA-capable devices, bypassing CPUs and host memory to cut latency, increase bandwidth, and accelerate distributed AI and HPC workloads.

Published:Updated:10 Minute Read

What Is NVIDIA GPUDirect RDMA?

NVIDIA GPUDirect RDMA (remote direct memory access) is a part of the NVIDIA Magnum IO™ family of technologies and allows users to rapidly transfer data between GPUs and other devices without involving the CPU itself or any host memory.

In a traditional data transfer scenario, data moves from the GPU to the system memory, to the NIC, and finally to the destination device. This process involves making multiple copies of data and involving the CPU, which increases latency and reduces overall system efficiency.In contrast, the GPUDirect RDMA data transfer process is optimized so the data can be transferred directly from the GPU memory regions on the NIC or other RDMA-capable devices without going through the system memory or CPU. This direct path to satellite device memory significantly reduces latency and frees up the CPU for other tasks.

This offers a few basic benefits we’ll discuss in more detail below:

GPUDirect RDMA ethernet is particularly useful for high-performance computing (HPC), data analytics, and AI workloads. It is designed to run on Tesla and Quadro-class GPUs.

GPUDirect RDMA Design

What is required for GPUDirect RDMA NVIDIA to directly transfer data between GPU memory and other RDMA-capable devices such as NICs and storage controllers? Here is a basic overview of design, hardware, and software components for NVIDIA GPUDirect RDMA.

Hardware-level integrations for GPUDirect RDMA include:

Software stack requirements for GPUDirect RDMA networking include:

System requirements for GPUDirect RDMA include:

Workflow in a GPUDirect RDMA System:

GPUDirect RDMA CUDA

GPUDirect RDMA CUDA (Compute Unified Device Architecture) integrates RDMA technology into the parallel NVIDIA computing platform and programming model, CUDA, to facilitate direct interactions between CUDA-based applications and RDMA-capable devices.

How GPUDirect RDMA CUDA works:

CUDA Integration

CUDA applications can leverage GPUDirect RDMA with specific CUDA APIs and libraries that support this functionality. This enables the application to initiate and manage RDMA operations directly from the GPU, bypassing the CPU for data transfers.

For example, a CUDA application can use RDMA APIs to register GPU memory with an RDMA-capable NIC. Once registered, the NIC can directly read from or write to GPU memory, enabling efficient data exchange between the GPU and other devices or remote GPUs across a network.

Use Cases for GPUDirect RDMA CUDA Applications

Applications include multi-node training setups for distributed machine learning and scientific simulations for high-performance computing (HPC) environments. Other uses include applications that demand real-time data processing, such as financial trading systems or real-time video analytics.

GPUDirect RDMA Benchmark

There are several key GPUDirect RDMA benchmarks to understand, and multiple factors that can affect benchmarking outcomes:

Typical GPUDirect RDMA benchmark results:

Multiple factors influence benchmark results:

GPUDirect RDMA Examples

NVIDIA GPUDirect RDMA is employed in various HPC and data-intensive applications to which minimizing latency and maximizing data throughput are critical. Here are some GPUDirect RDMA samples to think about:

GPUDirect RDMA vs GPUDirect Storage

Both GPUDirect Storage and GPUDirect RDMA improve performance without burdening the CPU, but they achieve that goal differently.

GPUDirect Storage specifically enables direct data transfers between storage devices and GPU memory to optimize access for GPU-powered applications. It functions without regard to storage location.In contrast, GPUDirect RDMA is a broader technology that facilitates high-speed data transfers by enabling direct memory access between GPUs and devices and storage systems across the network. It functions based on which device or storage location it is accessing.

Like NVIDIA GPUDirect RDMA, NVLink also enhances data transfer and communication in systems utilizing NVIDIA GPUs. However, it is also different in a few significant ways:

Benefits of GPUDirect RDMA

The benefits of GPUDirect remote direct memory access include:

Related Content

Scale Production AI Faster with NeuralMesh

Your models aren't slow. Your data is. Fix AI bottlenecks with high-throughput infrastructure.