Home Knowledge Base NVLink

NVLink is NVIDIA's high-bandwidth GPU-to-GPU interconnect — providing substantially higher bandwidth and lower latency than PCIe for multi-GPU systems, enabling efficient large-scale training and inference across multiple GPUs.

PCIe vs. NVLink Comparison

FeaturePCIe Gen4 x16NVLink 4.0 (H100)
Bandwidth (1 link)64 GB/s900 GB/s
Links per GPU118
Total bi-directional128 GB/s900 GB/s
Latency~1.5 μs~1 μs
TopologyStar (via CPU)Any (direct GPU-GPU)

NVLink Generations

NVSwitch

Peer-to-Peer (P2P) Memory Access

// Enable P2P access between GPU 0 and GPU 1
cudaSetDevice(0);
cudaDeviceEnablePeerAccess(1, 0);

// Direct copy GPU0 → GPU1 (bypasses CPU)
cudaMemcpyPeerAsync(dst_on_gpu1, 1, src_on_gpu0, 0, size, stream);

Impact on Distributed Training

NVLink is the critical infrastructure for large-scale LLM training — without it, inter-GPU communication would bottleneck all forms of model parallelism, and trillion-parameter models would be infeasible to train within reasonable time and cost budgets.

nvlinkgpu interconnectpeer to peer gpup2p accessmulti-gpu communication

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.