NVLink
NVLink is Nvidia's proprietary high-speed link for connecting GPUs to each other and to CPUs. First announced in 2014, it lets GPUs exchange data directly at hundreds of gigabytes per second, far faster than PCI Express, and since 2018 has used switches so that dozens of GPUs can act as one pool.
**NVLink** is a short-range, multi-lane serial communication link developed by Nvidia to move data between GPUs, and between GPUs and CPUs, faster than the standard PCI Express bus allows. It was announced in March 2014. ## How it differs from PCI Express - A device can have **several NVLink connections** at once. - Devices can be wired to each other directly in a **mesh**, without everything passing through a central hub. For a small number of GPUs, each one's links are enough to connect every GPU to every other. Larger systems, since 2018, use a packet-switched design in which a dedicated switch chip, the **NVSwitch**, connects many GPUs. Recent switches can also perform simple operations themselves, such as summing or broadcasting values, which reduces traffic. ## Speed by generation The link is built from differential pairs carrying 20, 25 or 50 gigabits per second each, depending on version. | GPU generation | Links per GPU | Total bandwidth per GPU | |---|---|---| | V100 (NVLink 2.0) | 6 | 300 GB/s | | A100 (NVLink 3.0) | 12 | 600 GB/s | | H100 and later | more again | 900 GB/s and above | For comparison, a 16-lane PCI Express 5.0 slot carries about 64 GB/s in each direction. ## Why it matters Training or running a large neural network across several GPUs requires them to pass intermediate results back and forth constantly. If the connection is slow, the GPUs wait on each other and extra GPUs add little; see Amdahl's Law. NVLink exists to make a group of GPUs behave as nearly as possible like one large one. The number of GPUs that share a single NVLink domain has grown from 8 in a typical server to 72 in a rack-scale system. Within the domain, communication is fast. Beyond it, traffic drops to ordinary networking, which is roughly ten times slower. The size of that domain is one of the main things that separates GPU generations; see What Changes Between AI GPU Generations Besides Speed: Number Formats, Memory, and Interconnect. ## In consumer cards NVLink briefly replaced the Scalable Link Interface (SLI) bridge on high-end gaming cards. Nvidia then dropped the connector from consumer products, and the technology is now essentially a data-centre feature. ## Openness NVLink is proprietary. That is part of Nvidia's hold on the market alongside its software; see CUDA: NVIDIA's Parallel Computing Platform That Locked In the AI Industry.