Skip to content

Support single-function-per-port topologies across transport-core, net-sircl, and fabric-tool - #6

Merged
FujitsuPolycom merged 1 commit into
mainfrom
feat/single-function-ring
Nov 21, 2026
Merged

FujitsuPolycom merged 1 commit into
mainfrom
feat/single-function-ring

Conversation

@FujitsuPolycom

Copy link
Copy Markdown
Owner

Summary

Generalizes transport-core, net-sircl, and fabric-tool to support single-function-per-port topologies (1 RDMA function per physical port, e.g. port0 rocep1s0f0, port1 rocep1s0f1) alongside the existing 2-function-per-port ConnectX-7 setups, without breaking ABI 1 or changing 2-function-per-port behavior.

  • transport-core: Adds functions_per_port (1 or 2) handling to topology parsing, validation, and route/lane derivation while preserving struct sircl_core_topology ABI 1.
  • net-sircl: Generalizes device discovery, lane selection, and QP setup across 1 or 2 functions per physical port (zero roceP2 lookups when configured single-function).
  • fabric-tool: Generalizes facts, plan, apply, verify, remove, and status to operate cleanly on 1-function-per-port topologies.

Verification

Offline / CPU CI

  • make -j (-Werror)
  • transport-core tests, net-sircl (30/30), fabric-tool (204/204), top-level tests/ (19/19), and make check-release (0 findings).

Real DGX Spark Hardware (4 × NVIDIA GB10 sm_121, Ring 4–7)

  • Built ARM64 libnccl-net-sircl.so natively on GB10 and passed transport-core + 30/30 net-sircl tests.
  • Verified fabric-tool facts + fabric-tool plan --commands (read-only, no host mutations) on a 4-Spark ring4-1func.topology (port0 rocep1s0f0, port1 rocep1s0f1): generated only primary-function rules (enp1s0f0np0/enp1s0f1np1, zero roceP2).
  • Ran PyTorch/NCCL (nccompat/pt:26.09, NCCL 2.31.2, NCCL_NET=sircl, NCCL_ALGO=Ring, NCCL_SOCKET_IFNAME=enP7s7) over real RoCEv2:
    • 2-Spark pair: examples/all_reduce.py PASS, examples/torch_teardown.py (8 KiB–256 MiB eager + 20× 64 KiB CUDA graph + teardown) PASS — Using network sircl, lane 0 only (rocep1s0f0/rocep1s0f1), zero roceP2, zero Socket fallback.
    • 4-Spark closed ring: examples/all_reduce.py PASS, examples/torch_teardown.py (8 KiB–256 MiB eager + 20× 64 KiB CUDA graph + teardown) PASS across all 4 ranks — 0->1->2->3->0 on rocep1s0f0 (lane 0), window 0, zero roceP2, zero new RDMA hardware error counters across all 16 HCAs.

…t-sircl, and fabric-tool

Allow port0 and port1 in topology files to name one RDMA function per physical
port (two HCAs per host) in addition to the existing two-function-per-port
layout, while preserving struct sircl_core_topology ABI 1.

- transport-core: accept one or two device identifiers on port0/port1, require
  both ports to have the same count, and return 1 or 2 lanes from
  sircl_core_topology_route with symmetric path-A selection on tied shortest
  paths.
- net-sircl: handle 1-lane routes in sircl_route_function,
  sircl_route_allowances, sircl_split_allowances, routes_from_topology,
  NET_SIRCL_ROUTES overrides, and net_sircl_topology_routes.
- fabric-tool: support 2-role FabricBindings (lanes == 1), default single-
  function paths to same-function relay egress, and generalize planning,
  facts binding, and cable subnet checks across 1 or 2 function classes.
- Add examples/ring4-two-hca.topology, update docs/configuration.md and
  SOURCE.json, and expand conformance, fabric-tool, and emulated 4-rank
  progress tests.
@FujitsuPolycom
FujitsuPolycom merged commit 5ff5cf5 into main Nov 21, 2026
4 checks passed
@FujitsuPolycom
FujitsuPolycom deleted the feat/single-function-ring branch November 21, 2026 00:31
FujitsuPolycom added a commit that referenced this pull request Nov 21, 2026
Versions
- Plugin and fabric-tool 0.1.3; transport-core 0.1.2 (its topology parser
  changed; ABI stays 1). Wire version stays 6.
- Rename the unreleased notes to RELEASE_NOTES-0.1.3.md and cover all three
  steps merged since v0.1.2: resource ownership (#3), review fixes (#4), and
  single-function-per-port topologies (#6).
- Read the core version in check_e2e.py from its VERSION file, and add a test
  that ties every stated version to the VERSION files.

Hardware claims
- State that 0.1.3 is CPU-tested only and that no qualification row covers it.
- Record the tags that keep the revisions cited by the validation records
  reachable (validation/2026-10-23-*).
- README: boot restoration was checked once on hardware with an earlier
  fabric-tool revision; point to that record instead of "not yet qualified".
- Ring of four: it ran nccl-tests with the 0.1.0 transport (confirmed by the
  owner); correct the README, the 0.1.0 measurements and the example.
- Relaxed ordering disabled and the installer behind the 0.1.0 path result
  are recorded inconsistently and no retained record settles them; both
  documents now say so instead of contradicting each other.

Documentation and version files only, plus release tests and one script line.
No tag is created for 0.1.3 until hardware qualification is recorded.
FujitsuPolycom added a commit that referenced this pull request Nov 21, 2026
…#5)

Versions
- Plugin and fabric-tool 0.1.3; transport-core 0.1.2 (its topology parser
  changed; ABI stays 1). Wire version stays 6.
- Rename the unreleased notes to RELEASE_NOTES-0.1.3.md and cover all three
  steps merged since v0.1.2: resource ownership (#3), review fixes (#4), and
  single-function-per-port topologies (#6).
- Read the core version in check_e2e.py from its VERSION file, and add a test
  that ties every stated version to the VERSION files.

Hardware claims
- State that 0.1.3 is CPU-tested only and that no qualification row covers it.
- Record the tags that keep the revisions cited by the validation records
  reachable (validation/2026-10-23-*).
- README: boot restoration was checked once on hardware with an earlier
  fabric-tool revision; point to that record instead of "not yet qualified".
- Ring of four: it ran nccl-tests with the 0.1.0 transport (confirmed by the
  owner); correct the README, the 0.1.0 measurements and the example.
- Relaxed ordering disabled and the installer behind the 0.1.0 path result
  are recorded inconsistently and no retained record settles them; both
  documents now say so instead of contradicting each other.

Documentation and version files only, plus release tests and one script line.
No tag is created for 0.1.3 until hardware qualification is recorded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant