TECHNOLOGY

NCCL interface filters: prefixes, exact names and ports

In this article
THE QUICK TAKE

A name without exact-match syntax can be a prefix; an omitted RDMA port can include every port on the matching adapter.

The intended name matches too much

A worker’s environment contains an adapter name that looks precise, yet initialization selects an additional device with a longer name. The setting can be functioning exactly as documented: a token may be a prefix rather than an exact match. A filtering error can therefore emerge only when a fleet grows or device names change. Review the parser contract and the complete matched set before diagnosing a routing or throughput regression.

Parse the correct filter family

The NCCL environment reference distinguishes IP-interface selection from RDMA HCA selection. Each has documented prefix matching, exclusion behavior and exact-name syntax, but the selected objects differ. An IP-interface filter does not directly name a verbs adapter. Preserve the entire effective value, not a shortened token copied into a ticket. Also distinguish shell assignment syntax from the value passed to NCCL; an exact-match marker belongs to the value itself.

Omitted fields expand the selection

The HCA grammar permits selecting adapter ports. Omitting the port allows all ports on a matching HCA rather than silently choosing the physically intended connector. Exact adapter naming and explicit port selection answer different questions. A token such as mlx5_1 can also match mlx5_10 when interpreted as a prefix. The exact-match form prevents that name expansion, but it does not prove the selected port reaches the correct fabric or that every rank receives the same naming arrangement.

Evaluate against each worker inventory

For every participating process, join its effective filter with the adapter and interface inventory actually visible in its namespace. Record admitted and excluded objects, port identity and expected network association. Include a fixture with a deliberately colliding longer name in a safe test environment or parser-level configuration review. Do not infer the matched set from one host when device enumeration differs across nodes. A globally copied string can describe different physical paths in otherwise similar workers.

Prove selection after parsing

The NCCL logging guide distinguishes network assignment evidence from component availability. Keep rank and communicator identity with initialization and network observations, then verify useful communication over the selected objects. Acceptance requires that the matched set equals the intended set and that those objects support the required transfer. A filter that successfully removes a bad adapter but admits an unintended fallback is not validation of the desired path, even if the job now starts.

Keep the policy maintainable

Document the filter’s purpose and its expected naming assumptions, then re-evaluate after adapter replacement, port remapping or image changes. Do not retain an emergency exclusion as a permanent unexplained topology policy. The transport assignment article covers the broader selection chain, while GID identity connects a selected RDMA port to its address context. This focused check establishes parser and inventory agreement; it supplies neither a universal interface naming scheme nor a guarantee that a selected link meets the workload’s performance criterion.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles