Inferensys

Glossary

NVLink

NVLink is NVIDIA's proprietary high-bandwidth, energy-efficient interconnect technology that enables direct communication between GPUs and between GPUs and CPUs at speeds significantly higher than traditional PCIe.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
GPU INTERCONNECT

What is NVLink?

NVLink is NVIDIA's proprietary high-bandwidth, energy-efficient interconnect technology designed for accelerated computing.

NVLink is a high-bandwidth, energy-efficient interconnect technology developed by NVIDIA that enables direct, high-speed communication between multiple GPUs and between GPUs and CPUs. It significantly outperforms the bandwidth of standard PCIe connections, reducing data transfer bottlenecks in multi-GPU systems and heterogeneous CPU-GPU architectures. This direct peer-to-peer (P2P) access is essential for scaling compute-intensive workloads like large language model training and high-performance computing.

The technology creates a unified memory space across connected devices, allowing GPUs to access each other's memory directly without routing through the host CPU. This architecture is a cornerstone of systems like NVIDIA's DGX and HGX platforms. For GPU memory optimization, NVLink minimizes latency for inter-GPU communication, which is critical for efficient model parallelism and managing large models that exceed the memory capacity of a single accelerator.

NVLink

Key Features and Technical Specifications

NVLink is NVIDIA's high-bandwidth, energy-efficient interconnect technology that enables direct communication between GPUs and between GPUs and CPUs at speeds significantly higher than traditional PCIe, crucial for scaling multi-GPU and CPU-GPU systems.

01

Architecture and Topology

NVLink creates a high-speed mesh network between processors, bypassing the traditional PCIe root complex. Key architectural elements include:

  • Direct GPU-to-GPU Links: Each NVLink connection provides a dedicated, bidirectional lane between two GPUs.
  • Multi-GPU Meshes: In systems like NVIDIA DGX, NVLink switches enable complex topologies (e.g., all-to-all connectivity) for up to 256 GPUs.
  • CPU-GPU Coherence: With NVLink-C2C, the interconnect extends cache coherency between NVIDIA Grace CPUs and Hopper GPUs, creating a unified memory space. This architecture is fundamental for workloads like large language model training, where terabytes of parameters must be synchronized across hundreds of GPUs.
02

Bandwidth and Performance

NVLink's primary advantage is its massive bandwidth, which scales with each generation to alleviate data transfer bottlenecks.

  • Generational Scaling: NVLink 4.0 offers 900 GB/s of bidirectional bandwidth per GPU-GPU link, a 1.5x increase over NVLink 3.0 (600 GB/s).
  • Comparison to PCIe: A single NVLink 4.0 connection provides over 14x the bandwidth of a PCIe 5.0 x16 lane (128 GB/s).
  • Aggregate Bandwidth: An NVIDIA H100 GPU with six NVLinks has an aggregate 3.6 TB/s of GPU-to-GPU bandwidth. This bandwidth is critical for model parallelism, where layers of a neural network are split across GPUs, requiring constant, high-volume activation and gradient transfers.
900 GB/s
NVLink 4.0 Bidirectional BW/Link
3.6 TB/s
H100 Aggregate GPU-GPU BW
03

Unified Memory and Address Space

NVLink enables a critical software feature: a single, unified virtual address space across multiple GPUs and CPUs.

  • GPU Direct Access: Any processor in the NVLink fabric can directly access the memory of any other connected processor using standard load/store instructions.
  • Simplified Programming: This eliminates the need for explicit cudaMemcpyPeer calls, allowing developers to treat distributed GPU memory as a large, shared pool.
  • Larger Model Capacity: Combined with technologies like Unified Virtual Memory (UVM), it allows a model's parameters to be distributed across the aggregate memory of all linked GPUs, enabling training of models that exceed the capacity of a single device. This is the foundation for frameworks like NVIDIA's Collective Communications Library (NCCL) optimized for multi-GPU reduction operations.
04

NVLink Switch System

For scaling beyond direct point-to-point connections, NVLink employs dedicated switching hardware.

  • NVSwitch: A standalone ASIC that acts as a communication hub. The fourth-generation NVSwitch chip supports 64 NVLinks at 50 GB/s per lane.
  • Fabric Topology: In an NVIDIA DGX H100 system, eight GPUs are connected via four NVSwitch chips, creating an all-to-all, fully non-blocking network where each GPU can communicate with every other GPU simultaneously at full NVLink bandwidth.
  • Scalability: This switch-based fabric is essential for scaling to NVLink Domains in large-scale clusters, maintaining high bandwidth for collective operations like All-Reduce across hundreds of GPUs.
05

Energy Efficiency

NVLink is designed for high performance per watt, a critical metric in data center-scale deployments.

  • Signal Integrity: Advanced signaling technology allows high data rates over fewer pins and at lower power than PCIe.
  • Impact on Total Workload Energy: By drastically reducing the time GPUs spend idle waiting for data, NVLink improves overall system utilization, completing workloads faster and reducing total energy consumption.
  • Comparative Efficiency: Transferring data over NVLink consumes significantly less energy per gigabyte than an equivalent transfer over PCIe, directly impacting the operational expenditure of large AI training clusters.
GPU INTERCONNECT

How NVLink Works: Architecture and Mechanism

NVLink is NVIDIA's high-bandwidth, energy-efficient interconnect technology that enables direct communication between GPUs and between GPUs and CPUs at speeds significantly higher than traditional PCIe, crucial for scaling multi-GPU and CPU-GPU systems.

NVLink establishes a point-to-point network between processors using dedicated, high-speed serial lanes. Unlike the shared bus of PCIe, this direct fabric provides significantly higher bi-directional bandwidth and lower latency. Each NVLink connection comprises multiple lanes, with modern implementations like NVLink 4.0 offering up to 900 GB/s of raw bandwidth per GPU-GPU link. The architecture supports cache coherency between GPUs and CPUs, enabling a unified memory address space for simplified programming through technologies like Unified Virtual Memory (UVM).

The mechanism relies on packet-switched communication where data is broken into flow control units (flits) routed through the fabric. A network-on-chip (NoC) within each GPU manages the traffic, connecting the streaming multiprocessors and memory controllers to the NVLink ports. This enables peer-to-peer (P2P) access, allowing GPUs to directly read and write to each other's memory without host CPU involvement. The interconnect also supports topology discovery and adaptive routing to optimize data paths in complex multi-GPU systems, forming a critical backbone for large-scale model parallelism and high-performance computing workloads.

NVLink

Primary Use Cases and Applications

NVLink's high-bandwidth, low-latency interconnect is foundational for scaling compute beyond the limits of a single GPU. Its applications are critical in domains where massive parallelism and fast data exchange are non-negotiable.

01

Large-Scale Model Training

Training modern large language models and vision transformers requires distributing the model and its optimizer states across hundreds of GPUs. NVLink enables efficient model parallelism by allowing layers split across GPUs to communicate gradients and activations at speeds far exceeding PCIe. This minimizes the idle time GPUs spend waiting for data, a bottleneck known as the communication wall. For example, frameworks like Megatron-LM rely on NVLink topologies to efficiently train models with trillions of parameters.

900 GB/s
NVLink 4.0 Bandwidth
02

High-Performance Computing (HPC) & Simulation

In scientific computing, applications like computational fluid dynamics, molecular dynamics, and climate modeling decompose massive spatial domains across GPU clusters. NVLink is essential for neighbor-to-neighbor communication in these stencil-based computations, where boundary data must be exchanged at every timestep. The low latency and high bandwidth reduce simulation time from weeks to days. Systems like the NVIDIA DGX SuperPOD leverage dense NVLink fabrics to power some of the world's fastest supercomputers for research.

03

Multi-GPU Inference with Large Contexts

While inference often uses a single GPU, models with extremely long context windows (e.g., 1M+ tokens) or massive multimodal models may exceed the memory of one accelerator. NVLink allows these models to be split across multiple GPUs for inference, with attention key-value (KV) caches and intermediate activations shared at near-internal GPU bandwidth. This is critical for latency-sensitive applications like real-time retrieval-augmented generation where the entire context must be kept resident and accessible.

5-10x
Faster vs. PCIe
04

CPU-GPU Unified Memory Architectures

NVLink isn't just for GPU-to-GPU communication. With NVLink-C2C, it creates a coherent memory space between NVIDIA GPUs and Grace CPUs. This enables a unified virtual address space, allowing the CPU and GPU to access the same data without explicit copies. This heterogeneous memory management simplifies programming and is pivotal for workloads with irregular data access patterns or those that dynamically switch between CPU and GPU execution, such as complex graph analytics and database acceleration.

05

Accelerated Data Analytics & AI Databases

Modern GPU-accelerated databases (e.g., Kinetica, BlazingSQL) and data processing frameworks use NVLink to enable fast joins, sorts, and aggregations across datasets larger than a single GPU's memory. By treating a cluster of NVLink-connected GPUs as a single, massive parallel compute unit, they can perform in-memory analytics on terabytes of data. This architecture is also key for graph neural network training on massive knowledge graphs, where the graph structure and features are distributed across GPU memory.

NVLink

Frequently Asked Questions

NVLink is NVIDIA's high-bandwidth, energy-efficient interconnect technology, crucial for scaling multi-GPU and CPU-GPU systems. These FAQs address its core functions, technical specifications, and practical applications.

NVLink is NVIDIA's high-bandwidth, point-to-point communication protocol that enables direct data transfer between GPUs and between GPUs and CPUs, bypassing the traditional PCIe bus. It functions by establishing dedicated, high-speed lanes between processors, creating a unified memory space that allows devices to access each other's memory directly with extremely low latency. This is achieved through a combination of custom physical-layer signaling, packet-based communication protocols, and integrated memory controllers that manage the coherent transfer of data. Unlike PCIe, which is a shared, switched fabric, NVLink provides a direct, fat pipe that significantly reduces communication overhead for parallel workloads like large model training and high-performance computing simulations.

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.