Walkthrough available
NVIDIA & GPU infrastructure
Device visibility, connection topology, collective communication, and test interpretation.
Watch and tryLearn one idea at a time
Practical study across AI infrastructure, machine learning, and cloud architecture. Start with the GPU walkthrough below; NVIDIA, AWS, Azure, Google Cloud, and Oracle Cloud form the wider learning roadmap.
First available walkthrough
Understand GPU visibility, connection topology, and NCCL communication in a short narrated walkthrough.
Original learning example. The walkthrough uses a Linux server with four complete GPUs and illustrative outputs.
Chinese narration with English diagrams.
Interactive illustration
Give each GPU a number. AllReduce adds the inputs, then gives the same result to every participant.
Use whole numbers from −100 to 100.
Ready to combine 1, 2, 3, and 4.
This browser illustration explains the operation. The walkthrough and guide describe the command used for an actual NCCL test on a prepared GPU host.
Knowledge check
Use three short situations to check your understanding of the walkthrough.
Continue learning
The eight-page learning guide includes a 40-minute study plan, command explanations, worked examples, and six self-check questions with answers.
Download the PDFFor a Linux host with four available GPUs and a compiled nccl-tests installation.
./build/all_reduce_perf -b 8 -e 128M -f 2 -g 4The test scans message sizes from 8 bytes to 128 MiB. With the default single thread, -g 4 uses four GPUs.
This example uses a Linux server with four physical GPUs. We will check whether the devices are visible, how they are connected, and whether they can communicate correctly.
First, run nvidia-smi, dash, uppercase L. Compare the number of GPUs, their models, and their unique device IDs with the expected inventory. Then run nvidia-smi to check status. Zero percent utilization can be normal when a GPU is idle.
Next, run nvidia-smi, topo, dash m. The matrix shows connections through NVLink and PCI Express. Topology tells you how the devices connect. A benchmark measures how well they communicate.
NCCL coordinates communication across participating GPUs. Each participant has a rank. A sum AllReduce adds corresponding elements from each array, then gives every rank the same result. In this example, each rank receives sixteen and twenty.
On a prepared host, run the command shown here. It tests messages from eight bytes to one hundred twenty-eight mebibytes, doubling the size at each step. With one process and the default single thread, dash g four uses four GPUs. The default data type is float, and the reduction is sum.
The default correctness check runs after the timed iterations. Check both wrong-element columns for zero and confirm that the test finishes normally. Time is reported in microseconds. Bandwidth is reported in gigabytes per second.
Algorithm bandwidth is the message size divided by the operation time. For a four-rank AllReduce, bus bandwidth is one point five times algorithm bandwidth. Compare with a baseline that matches the hardware, topology, software, message size, and load. Keep the command and the results together.
Learning roadmap
These are study topics. The GPU walkthrough is the first guide available here; the other topics do not yet have published lessons in this learning studio.
Walkthrough available
Device visibility, connection topology, collective communication, and test interpretation.
Watch and tryStudy topic
Cloud architecture, AI and ML services, and the infrastructure behind learning workloads.
Study topic
AI services, cloud architecture, and the path from a prototype to a managed deployment.
Study topic
AI and ML, data platforms, and cloud architecture for connected learning applications.
Study topic
Cloud infrastructure, data services, and architecture choices for AI workloads.
About this lab
Calming AI breaks technical topics into original examples grounded in public documentation. Watch an explanation, try the interactive illustration, and return to the guide when you want to understand a step more deeply.