﻿# An NCCL topology dump is not always a valid topology input

Distinguish a single-host topology input from a dump covering a multi-host NVLink domain before reusing XML as an NCCL override.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/nccl-topology-dump-single-host-input-boundary/
Language: en

## A diagnostic file becomes an unreviewed override

An engineer saves an XML topology dump from a multi-host NVLink environment, then supplies the entire file as a topology override on another worker. Both variables refer to topology, but their contracts do not imply a round-trip identity. The dump can describe a broader domain than the input is allowed to describe. Reusing it blindly can turn a diagnostic artifact into an inaccurate source of configuration.

## Match input and output scope

The [NCCL environment reference](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/env.html) states that the topology input must describe a single host, including in multi-node NVLink systems. It separately explains that the dump can contain the topology of the NVLink domain across hosts and must be reduced appropriately before reuse as input. A successful file read does not prove that its scope is valid. Preserve the producing run, domain membership and intended target host with every candidate file.

## Establish the source of detected topology

The [GPU troubleshooting guide](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting/gpu_troubleshooting.html) explains NCCL's reliance on sysfs and the effects of incomplete or virtualized topology views. An override is loaded before topology detection, and the environment reference also documents a default virtual-topology file location when present. Record all relevant input sources, not only the explicit environment variable. Otherwise a comparison labeled automatic detection can still inherit a topology description from another service or earlier configuration state.

## Review identity before editing structure

Map every included GPU, NIC and relevant host relationship to the current physical and worker-visible inventory. If deriving a host-specific input, preserve provenance and use the documented supported representation rather than mechanically deleting unfamiliar nodes. A stale PCI identity or copied host relationship can survive an apparently correct scope reduction. Keep an untouched diagnostic dump separately so the derivation remains reviewable and future topology changes do not overwrite the evidence that motivated the override.

## Qualify the resulting view

In an isolated authorized comparison, inspect the topology NCCL actually uses and its selected network assignments through [supported logging](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting/logging.html). Verify correct useful collectives for the intended rank placement and compare against a justified baseline. Include the target host identity and effective input file with the result. Acceptance should connect a valid single-host input to the resulting view and workload behavior, not merely demonstrate that XML parsing completed or initialization no longer emitted a warning.

## Keep the override conditional

An override cannot manufacture missing physical links, grant peer access or guarantee a faster algorithm. It is a maintained description with a validity boundary that changes after hardware, partition or virtualization changes. The [transport assignment guide](/journal/guide-perf-nccl-transport/) keeps selection evidence separate from availability, while [peer capability checks](/journal/gpu-peer-access-matrix/) address the actual directed access relationship. The useful artifact is a documented host-specific derivation and accepted behavior, with the broader dump retained as evidence rather than silently treated as universally reusable configuration.
