NCCL Tests Keyboard Shortcuts

Complete NCCL Tests keyboard shortcuts and commands reference — 13 shortcuts across 3 categories. Quick reference cheat sheet for Windows & Mac.

NCCL Tests measure the collective operations that multi-GPU training depends on, and a run of all_reduce_perf is the standard acceptance test for a new GPU node or cluster. The table lists the binaries and the flags that shape a run; the notes explain the numbers the tests print and how to run them across nodes.

Collective Benchmarks (5)

ShortcutActionDescription
all_reduce_perf -b 8 -e 128M -f 2 -g 8All-reduce testBenchmark all-reduce bandwidth on a single node with 8 GPUs, scanning message sizes from 8B to 128MB.
all_gather_perf -b 8 -e 128M -g 8All-gather testBenchmark all-gather collective bandwidth across GPUs.
broadcast_perf -b 8 -e 128M -g 8Broadcast testBenchmark broadcast collective bandwidth from a root GPU.
reduce_scatter_perf -b 8 -e 128M -g 8Reduce-scatter testBenchmark reduce-scatter collective bandwidth.
alltoall_perf -b 8 -e 128M -g 8All-to-all testBenchmark all-to-all collective bandwidth, the most demanding pattern on network fabric.

Flags & Multi-Node (5)

ShortcutActionDescription
-b sizeMin message sizeSet the starting message size for the scan, e.g. 8 for 8 bytes.
-e sizeMax message sizeSet the ending message size for the scan, e.g. 128M for 128 MiB.
-f factorStep factorMultiply the message size by this factor between each step; 2 means doubling.
-g nGPUs per processNumber of GPUs each process (rank) uses.
mpirun -np n -N ppn all_reduce_perf -g 1Multi-node runLaunch the test across multiple nodes via MPI, typically one GPU per rank.

Diagnostics (3)

ShortcutActionDescription
-c 1Check correctnessVerify collective results are numerically correct on each iteration.
-w nWarmup iterationsNumber of warmup iterations to run before timing begins.
-J out.jsonJSON outputWrite machine-readable results to a JSON file for automated analysis.
📜 Source: NVIDIA — NCCL Tests (GitHub). Binaries and flags from the nccl-tests README for the current release. Checked 2026-09-06. How we verify ›
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Frequently Asked Questions

What are the most useful NCCL Tests keyboard shortcuts?

The most essential NCCL Tests shortcuts are: all_reduce_perf -b 8 -e 128M -f 2 -g 8 (All-reduce test), all_gather_perf -b 8 -e 128M -g 8 (All-gather test), broadcast_perf -b 8 -e 128M -g 8 (Broadcast test).

How do I use NCCL Tests commands?

These are command-line commands — type them in your terminal or console. Combine them with shell history search (Ctrl + R) and aliases to work even faster.

What is the NCCL Tests shortcut for all-reduce test?

The NCCL Tests shortcut for all-reduce test is all_reduce_perf -b 8 -e 128M -f 2 -g 8. Benchmark all-reduce bandwidth on a single node with 8 GPUs, scanning message sizes from 8B to 128MB.

What Flags & Multi-Node shortcuts does NCCL Tests have?

NCCL Tests includes 5 Flags & Multi-Node shortcuts, including -b size (Min message size) and -e size (Max message size). See the full list in the Flags & Multi-Node section above.

Can I combine NCCL Tests shortcuts with other tools?

Yes — use My Stack to combine NCCL Tests shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.

Related Shortcut Pages

OpenMPI (mpirun) Mellanox / InfiniBand nvidia-smi (GPU) torchrun Slurm NVIDIA DCGM

Search 18,500+ shortcuts across 268 platforms

Explore All Platforms Practice Shortcuts
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

A first run

all_reduce_perf -b 8 -e 128M -f 2 -g 8 runs all-reduce on eight GPUs in one process, from 8 bytes to 128 MB doubling each step. The output has one row per size with time, algorithm bandwidth and bus bandwidth; busbw is the number to compare against hardware — close to NVLink bandwidth within a node, close to the network rate across nodes. all_gather_perf -b 8 -e 128M -g 8, reduce_scatter_perf -b 8 -e 128M -g 8, broadcast_perf -b 8 -e 128M -g 8 and alltoall_perf -b 8 -e 128M -g 8 exercise the other collectives; alltoall is the one that finds a weak network.

The flags

-b size and -e size set the message range and -f factor the multiplier between steps; -g n is GPUs per process. For a multi-node run, launch one process per GPU under MPI — mpirun -np n -N ppn all_reduce_perf -g 1 — because the -g mode is single-process only. -c 1 checks results for correctness (on by default; turn off for pure timing), -w n sets warm-up iterations so the first timed run is not paying initialisation, and -J out.json writes results as JSON for comparison across runs.

Reading a bad result

Bus bandwidth far below expectation usually means NCCL fell back to a slower path: set NCCL_DEBUG=INFO to see which transport (NVLink, PCIe, IB, socket) was selected per channel. Across nodes, check that NCCL_IB_HCA points at the right adapters and that GPUDirect RDMA is in use; within a node, nvidia-smi topo -m shows whether the GPUs share NVLink or cross a PCIe host bridge.

🤖 Ask AI about NCCL Tests shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok