diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 124429a..c73e476 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - name: Build and test extracted source archive run: | mkdir "$RUNNER_TEMP/net-sircl-source" - tar -xzf dist/net-sircl-0.1.2.tar.gz -C "$RUNNER_TEMP/net-sircl-source" + tar -xzf dist/net-sircl-0.1.3.tar.gz -C "$RUNNER_TEMP/net-sircl-source" python3 scripts/check_release_safety.py --tree "$RUNNER_TEMP/net-sircl-source" make -C "$RUNNER_TEMP/net-sircl-source" -j2 all emu make -C "$RUNNER_TEMP/net-sircl-source" check diff --git a/README.md b/README.md index a80e92c..7acd69e 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,11 @@ environment variables. PyTorch, vLLM, JAX and other NCCL applications then use it with no code changes, and NCCL keeps its own collective algorithms and CUDA-graph support. -Version **0.1.2**, wire version **6** (every host in a job must use the same -wire version). Status: **research-only**. The [qualification table](docs/qualification.md) +Version **0.1.3**, wire version **6** (every host in a job must use the same +wire version and the same build). Status: **research-only**. 0.1.3 is +CPU-tested only: it has not run on DGX Sparks, and the recorded results below +were obtained with earlier builds ([release notes](RELEASE_NOTES-0.1.3.md)). +The [qualification table](docs/qualification.md) identifies the exact source revisions and conditions of recorded DGX Spark results; modified source builds require separate hardware qualification. @@ -78,7 +81,7 @@ torchrun --nnodes=2 --nproc-per-node=1 --node-rank=RANK \ ``` Expect `Loaded net plugin sircl (v12)`, `Using network sircl`, -`net-sircl 0.1.2 (wire version 6)`, and `PASS` from every rank. +`net-sircl 0.1.3 (wire version 6)`, and `PASS` from every rank. `NCCL_SOCKET_IFNAME` takes one interface name or prefix; for NCCL's `^`, `=` or list forms, set `NET_SIRCL_OOB_ADDR` to this host's IPv4 address instead. @@ -96,9 +99,13 @@ or list forms, set `NET_SIRCL_OOB_ADDR` to this host's IPv4 address instead. 3. Launch as in the quickstart with `NCCL_ALGO=Ring`, one rank per host in cable order, and `--nnodes`/`--node-rank` adjusted. -Relay tables are verified read-only by fabric-tool; restoring them at boot is -not yet qualified. A ring of four is CPU-tested only, and layouts not listed in -[Verified with](#verified-with) are untested on hardware. See +Relay tables are verified read-only by fabric-tool. Restoring them at boot and +after a link reset was checked on hardware once, on a four-host path with an +earlier fabric-tool revision; the [qualification table](docs/qualification.md) +gives the conditions, and nothing wider is qualified. A ring of four ran +nccl-tests with the 0.1.0 transport ([0.1.0 notes](docs/release-0.1.0.md)) and +has not been rerun since; later builds cover it on CPU only. Layouts not listed +in [Verified with](#verified-with) are otherwise untested on hardware. See [configuration](docs/configuration.md). ## Verified with @@ -106,10 +113,10 @@ not yet qualified. A ring of four is CPU-tested only, and layouts not listed in Single runs on one eight-Spark ring (GB10, ConnectX-7 RoCE at 200 Gb/s, one GPU and rank per host, `NCCL_MAX_NCHANNELS=8`). A pass means correct results, unchanged RDMA/Ethernet error counters and every rank exiting on its own; it is -not a throughput benchmark or a serving qualification. Rows other than -nccl-tests and PyTorch eager/graph used the 0.1.1 library, which shares wire -version 6 and transport-core 0.1.1 with this release. Every row is -**research-only**. +not a throughput benchmark or a serving qualification. The nccl-tests and +PyTorch eager/graph rows used the 0.1.2 library and the other rows the 0.1.1 +library. Both share wire version 6 with this release, but none of the rows ran +0.1.3. Every row is **research-only**. | Framework | Version | NCCL | Sparks | |---|---|---|---| diff --git a/RELEASE_NOTES-0.1.3.md b/RELEASE_NOTES-0.1.3.md new file mode 100644 index 0000000..b291352 --- /dev/null +++ b/RELEASE_NOTES-0.1.3.md @@ -0,0 +1,148 @@ +# net-sircl 0.1.3 + +Status: **research-only; this release is CPU-tested only.** The 0.1.3 plugin, +transport-core and fabric-tool have not run on DGX Sparks as released. Plugin +and fabric-tool versions are 0.1.3; bundled transport-core is 0.1.2, ABI 1, +with a new source identity. The network library exports ext-net v7–v12 and +tuner v4. Wire version remains **6** and the wire structures are unchanged; +every host of a job must run the same build. + +0.1.3 contains everything merged after the `v0.1.2` tag, in three steps: + +1. **Resource ownership and recovery** (merged 2026-10 as #3): fabric-tool + keeps resolved interface bindings and resource ownership across planning, + apply, restoration and removal, and a local timer restores missing relay + state after carrier resets; the transport uses a shared validated admission + plan with explicit registration and request lifetimes; CPU-staged emulation + selects LL/Simple and rejects unsafe LL128 requests. Revisions of this work + ran on hardware, and they are tagged: `validation/2026-10-23-transport`, + `validation/2026-10-23-resource-ownership`, `validation/2026-10-23-recovery` + and `validation/2026-10-23-installer-coordination` (the last is later than + the revision that ran). Their records are the + [transport validation](docs/dgx-spark-validation.md), the + [recovery validation](docs/recovery-validation.md) and the + [qualification table](docs/qualification.md). +2. **Review fixes** (merged as #4), described below. None of them has run on + hardware, and they change the plugin's data path (deadlines, connection + setup), the topology parser and fabric-tool's reads and ownership record. + The hardware records of step 1 therefore do not cover 0.1.3. +3. **Single-function-per-port topologies** (merged as #6): `port0` and `port1` + in topology files now accept one RDMA function per physical port (two HCAs + per host) in addition to the default two-function-per-port layout, while + preserving `transport-core` ABI 1 and wire version 6. No qualification row + covers this build. + +## Behaviour that changes for users + +- **A rank that is late is waited for.** `NET_SIRCL_REQUEST_TIMEOUT_MS` now + bounds only this host's own transport progress (a send from its + clear-to-send to completion, and a receive's clear-to-send post). Waiting + for the peer application to post its matching request has no deadline by + default, as with NCCL's own transports; before, a rank more than 60 seconds + late to a collective failed the job. `NET_SIRCL_PEER_WAIT_TIMEOUT_MS` adds + an optional bound. A failed connection now shuts its socket down, so the + peer's requests on it fail promptly. + See [deadlines](docs/configuration.md#deadlines). +- **Settings fail closed.** `NET_SIRCL_CHUNK`, `NET_SIRCL_SPEED_MBPS`, + `NET_SIRCL_TC`, `NET_SIRCL_RELAXED_ORDERING`, `NET_SIRCL_ROUTE_CHECK` and + `NET_SIRCL_GID_INDEX` are validated like the other settings: an empty, + malformed or out-of-range value fails initialization instead of selecting + the default or being truncated. `NET_SIRCL_OOB_ADDR` must be an IPv4 address + when set; when no address is found the plugin warns that it advertises + 127.0.0.1. +- **Topology files are read strictly, and identically by the plugin and + fabric-tool.** A `cabling` line is required; extra words, a `port0`/`port1` + line without one or two names (or with different counts on the two ports), + over-long names, more than 64 hosts, a host without a cable and cables that + do not join every host are refused with a message, where the plugin used to + guess, truncate or continue without routes. A two-host `cabling ring` is one + cable for both tools (fabric-tool used to read two); write a double-cabled + pair with `cabling explicit`. +- **Single-function-per-port topologies (two-HCA hosts).** `port0` and `port1` + may name one RDMA device per physical port instead of two, as shown in + [examples/ring4-two-hca.topology](examples/ring4-two-hca.topology). + `net-sircl` handles 1-lane routes from topologies and `NET_SIRCL_ROUTES`, + and `fabric-tool` binds, plans and verifies 1-function or 2-function + fabrics (defaulting single-function paths to same-function relay egress). +- **Stray connections no longer fail communicator setup.** The listener binds + the advertised address and drops a connection that never sends valid + metadata. +- **fabric-tool** + - Only processes run by root count as markers (`pgrep -U 0 -u 0`), so a + process that merely carries the marker's name cannot stand in for one. + - A missing tool or a failed read on a host is a problem that blocks + `apply`/`remove` and fails `verify`, instead of reading as "nothing + installed". + - The ownership record's layout name is derived from the topology's content, + not its file name, so a workstation and the boot unit agree. Each host + shows one pending record write the first time. + - `cabling explicit` in any order or port pairing can be planned. + - `apply --boot` no longer stops marker processes the plan does not name. + - `install-boot` starts the reconcile timer even when its immediate apply + fails; `remove-boot` can be run twice; ingress qdiscs added by a run that + failed later stay recorded as owned. + - `remove` refuses a host whose interfaces have other names unless `--facts` + is given, and a host whose record names a different marker executable + unless `--marker` names it. `verify --adopt` is rejected (it never did + anything). + +## Fixes without a change in normal use + +- Equally short lanes on an even ring cabled with `explicit` now follow the + cables at the higher position; they were assumed to arrive on port 1, which + put the two ends of a lane on different paths when a host was turned round. + Ring and path cabling are unaffected. +- A direct peer capped with `NET_SIRCL_WINDOWS` above about 64 MiB could + overflow the queue pair's send queue on a large send; payload writes now + stop short of it and resume as completions arrive. +- A forked child (a data-loader worker) no longer keeps the one-plugin-per-host + claim alive after its parent finalizes or exits. +- A connect toward a position the topology gives no route to logs why. +- The plugin build uses the bundled `transport-core` before a directory of + that name next to the checkout. +- The release scanner fails on an empty or missing tree and scans files that + contain NUL bytes. + +## Tests added + +Peers that are late rather than lost, stray connections, a window deeper than +the send queue, strict settings, fork handling, what the topology parser +refuses and accepts (including single-function-per-port topologies), lane +reciprocity on turned rings, a conformance corpus that both topology parsers +must read alike, 1-lane emulated 4-rank progress, and 58 fabric-tool cases. + +## Validation + +CI builds the real-NIC and emulated libraries and runs the full suites on +Ubuntu 24.04 x86-64 and aarch64: transport-core's three C tests and seven +Python tests, the plugin's 30 CPU tests, the 20 release and conformance tests +and fabric-tool's 204 tests pass, and the release scanner reports no findings +both on the checkout and on the extracted source archive. + +## Before using 0.1.3 on hardware + +Run the [hardware procedure](fabric-tool/HARDWARE-TEST-PLAN.md) and the +nccl-tests and PyTorch checks of the earlier records on the build you deploy, +and record the result as the [qualification table](docs/qualification.md) +requires. The changes most worth exercising are the deadline behaviour with a +deliberately late rank, relayed traffic after fabric-tool's stricter reads, +single-function-per-port layouts where applicable, and one `apply` on hosts +that carry a record written by 0.1.2. + +## Documentation corrections + +- The README said restoring relay tables at boot was not yet qualified. It was + checked once on hardware with an earlier fabric-tool revision; the README now + points to that record and its limits. +- The README, the 0.1.0 measurements and the ring-of-four example said a ring + of four was CPU-tested only. It ran nccl-tests with the 0.1.0 transport, as + the 0.1.0 notes state, and has not been rerun since. +- The 0.1.0 notes and the 0.1.0 measurements disagree on whether relaxed + ordering disabled was measured and on which installer configured the + path-of-four relays. No retained record settles either, and both documents + now say so. + +## Not changed + +- `transport-core/src/fabric.c` and the `sircl_protocol_*` declarations in + `sircl_fabric.h`, which nothing in this repository calls or defines. diff --git a/RELEASE_NOTES-unreleased.md b/RELEASE_NOTES-unreleased.md deleted file mode 100644 index 2db0763..0000000 --- a/RELEASE_NOTES-unreleased.md +++ /dev/null @@ -1,89 +0,0 @@ -# net-sircl: changes after 0.1.2 (unreleased) - -Status: **CPU-tested only.** Nothing here has run on DGX Sparks. The plugin, -transport-core and fabric-tool sources on this branch differ from the `v0.1.2` -tag (they already did after the merge of the resource-ownership work), so the -0.1.2 hardware qualification does not cover this tree; see -[qualification](docs/qualification.md). The `VERSION` files still read 0.1.2 -and 0.1.1 until a release is cut. Wire version remains **6** and the wire -structures are unchanged; every host of a job must run the same build. - -## Behaviour that changes for users - -- **A rank that is late is waited for.** `NET_SIRCL_REQUEST_TIMEOUT_MS` now - bounds only this host's own transport progress (a send from its - clear-to-send to completion, and a receive's clear-to-send post). Waiting - for the peer application to post its matching request has no deadline by - default, as with NCCL's own transports; before, a rank more than 60 seconds - late to a collective failed the job. `NET_SIRCL_PEER_WAIT_TIMEOUT_MS` adds - an optional bound. A failed connection now shuts its socket down, so the - peer's requests on it fail promptly. - See [deadlines](docs/configuration.md#deadlines). -- **Settings fail closed.** `NET_SIRCL_CHUNK`, `NET_SIRCL_SPEED_MBPS`, - `NET_SIRCL_TC`, `NET_SIRCL_RELAXED_ORDERING`, `NET_SIRCL_ROUTE_CHECK` and - `NET_SIRCL_GID_INDEX` are validated like the other settings: an empty, - malformed or out-of-range value fails initialization instead of selecting - the default or being truncated. `NET_SIRCL_OOB_ADDR` must be an IPv4 address - when set; when no address is found the plugin warns that it advertises - 127.0.0.1. -- **Topology files are read strictly, and identically by the plugin and - fabric-tool.** A `cabling` line is required; extra words, a `port0`/`port1` - line without exactly two names, over-long names, more than 64 hosts, a host - without a cable and cables that do not join every host are refused with a - message, where the plugin used to guess, truncate or continue without - routes. A two-host `cabling ring` is one cable for both tools (fabric-tool - used to read two); write a double-cabled pair with `cabling explicit`. -- **Stray connections no longer fail communicator setup.** The listener binds - the advertised address and drops a connection that never sends valid - metadata. -- **fabric-tool** - - Only processes run by root count as markers (`pgrep -U 0 -u 0`), so a - process that merely carries the marker's name cannot stand in for one. - - A missing tool or a failed read on a host is a problem that blocks - `apply`/`remove` and fails `verify`, instead of reading as "nothing - installed". - - The ownership record's layout name is derived from the topology's content, - not its file name, so a workstation and the boot unit agree. Each host - shows one pending record write the first time. - - `cabling explicit` in any order or port pairing can be planned. - - `apply --boot` no longer stops marker processes the plan does not name. - - `install-boot` starts the reconcile timer even when its immediate apply - fails; `remove-boot` can be run twice; ingress qdiscs added by a run that - failed later stay recorded as owned. - - `remove` refuses a host whose interfaces have other names unless `--facts` - is given, and a host whose record names a different marker executable - unless `--marker` names it. `verify --adopt` is rejected (it never did - anything). - -## Fixes without a change in normal use - -- Equally short lanes on an even ring cabled with `explicit` now follow the - cables at the higher position; they were assumed to arrive on port 1, which - put the two ends of a lane on different paths when a host was turned round. - Ring and path cabling are unaffected. -- A direct peer capped with `NET_SIRCL_WINDOWS` above about 64 MiB could - overflow the queue pair's send queue on a large send; payload writes now - stop short of it and resume as completions arrive. -- A forked child (a data-loader worker) no longer keeps the one-plugin-per-host - claim alive after its parent finalizes or exits. -- A connect toward a position the topology gives no route to logs why. -- The plugin build uses the bundled `transport-core` before a directory of - that name next to the checkout. -- The release scanner fails on an empty or missing tree and scans files that - contain NUL bytes. - -## Tests added - -Peers that are late rather than lost, stray connections, a window deeper than -the send queue, strict settings, fork handling, what the topology parser -refuses and accepts, lane reciprocity on turned rings, a conformance corpus -that both topology parsers must read alike, and 57 fabric-tool cases. - -## Not changed here - -- Version numbers, tags and the hardware-claim wording in README, - `docs/release-0.1.0.md`, `docs/measurements.md` and `docs/qualification.md`, - which disagree with each other in places and need the people who ran the - hardware to settle. -- `transport-core/src/fabric.c` and the `sircl_protocol_*` declarations in - `sircl_fabric.h`, which nothing in this repository calls or defines. diff --git a/SOURCE.json b/SOURCE.json index 3f82cf9..a3626fe 100644 --- a/SOURCE.json +++ b/SOURCE.json @@ -1,10 +1,10 @@ { "core_abi": 1, - "core_version": "0.1.1", - "plugin_version": "0.1.2", + "core_version": "0.1.2", + "plugin_version": "0.1.3", "plugin_wire_version": 6, "fabric_tool": { - "version": "0.1.2", + "version": "0.1.3", "upstream_file_sha256": { "DESIGN.md": "ba6d0fb875e8758aceaec71fc80716a3a6dabec7dca47bf6ab51f79aba80bc72", "HARDWARE-TEST-PLAN.md": "ef4a8a26193cfc81913d6b253136c9ca66c3dd8f873a55601ef429c32c0918d9", @@ -49,7 +49,8 @@ "CPU tests run without external project imports; external comparison and network-simulator tests are omitted.", "Documentation describes standalone usage and validation boundaries.", "Marker security regressions run standalone with synthetic host state and local shell checks.", - "0.1.2 verify rejects missing hardware offload and ownership blockers; CPU loss/recovery fixtures added." + "0.1.2 verify rejects missing hardware offload and ownership blockers; CPU loss/recovery fixtures added.", + "0.1.3 counts only root processes as markers, treats failed reads as blockers, names the layout by content, plans explicit cabling and supports single-function-per-port topologies; CPU-tested only." ] }, "archive_tool": "transport-core/tools/package.py", @@ -113,9 +114,10 @@ "Standalone build, CI, archive tooling, documentation and synthetic examples retained from public v0.1.0.", "External SIRCL/libsircl comparison tests and proxy-adaptation tools remain excluded.", "0.1.2 adds the tuner v4 policy, finite request deadlines and sticky transport errors; wire remains 6.", - "Transport-core exposes version 0.1.1 ABI 1; its startup source identity is derived from the distributed implementation bytes.", + "Transport-core exposes version 0.1.2 ABI 1; its startup source identity is derived from the distributed implementation bytes.", "Fabric-tool 0.1.2 requires hardware-offloaded relay rules and returns failure for verify blockers.", - "Corrected PyTorch graph lifetime check, channel and runtime matrices, fault-injection tests and public documentation." + "Corrected PyTorch graph lifetime check, channel and runtime matrices, fault-injection tests and public documentation.", + "0.1.3 separates transport deadlines from waits for the peer application, validates every setting, parses topology files strictly, supports single-function-per-port topologies and shares that grammar with fabric-tool; wire remains 6; CPU-tested only." ], "source_sha256": { "fabric-tool/mesh_marker.c": "5f330fba6e4c6c2e49d158b84fd76ef0c2ed710354753742503c09262b9c6d4a", @@ -163,7 +165,7 @@ "net-sircl/tests/standin/shm_verbs.c": "3921790d413212dee23f906a2abc897ff2367c27ac910d521174cf8c077b66a2", "net-sircl/tests/standin/shm_verbs.h": "53f1b6b16e26f807875bc1020f76764acae3bdcff26356eed6900f169be5bd63", "net-sircl/tests/topology_progress_test.c": "f0bcd956edfc4cfa3bfd339f34a7c7f580256da315d6d8b592b0d0a24c52af02", - "transport-core/include/sircl_core/core.h": "2758f18ea6a627b90d759669553b8be72e79ca51273ffbf984587f71151d32e9", + "transport-core/include/sircl_core/core.h": "07ef70851ac78bedb98f61522cdcb697971f98cfbf36df83899c5215d8537753", "transport-core/include/sircl_core/emulation_verbs.h": "4492551757c091045ac75150585a645f4f5682402e8cd4564d5116d31d0de3da", "transport-core/include/sircl_core/legacy_proxy_names.h": "94e302cb90785a3394ab3c1ca7cd454fbead8767e0fa7ad3d6e072afcf9db7f3", "transport-core/include/sircl_core/shm_verbs.c": "27ac4ea05c5e15185fcf51106895655a9b34a08913232a664448f7fe2db70d15", @@ -181,7 +183,7 @@ "transport-core/src/topology.c": "c0a61fd97072a7114bf39890055b8d17dff891ce3930d2970faaa4fcc4200832", "transport-core/src/verbs_dl.c": "ea38fd0ef71bc215f8d97c4f836179aa9190dc87a34125a4a24a96e23bbc4d84", "transport-core/tests/fake_verbs/infiniband/verbs.h": "8c2173547a2169bb455d103b7842463168e75d4350f4434d92ab5dabc353c64c", - "transport-core/tests/test_core.c": "af1228e52b14a1da826573e8eb604ca27ffaf603d3aa7f464b00a4b729f0c2c0", + "transport-core/tests/test_core.c": "af50eedb132df536ab1a4700b9513d7a0d101ec9d26049a9ae6466c89ceb2218", "transport-core/tests/test_emulator_lifetime.c": "9a6b273b84cee7da73ec12eb03759098e11103bb461af02b5af6dd03311c0506", "transport-core/tests/test_verbs.c": "ec84a8971e48c2fd098dc06d630733af2a5f21c6cd6e9eaa89dca67a9871c220" }, diff --git a/docs/measurements.md b/docs/measurements.md index 2388d75..a21e386 100644 --- a/docs/measurements.md +++ b/docs/measurements.md @@ -128,7 +128,22 @@ not predictions for this matched-control procedure. ## Unmeasured conditions -No ring-of-four plugin traffic measurement or measurement with relaxed ordering disabled. +A ring of four also ran with the 0.1.0 transport: every nccl-tests line passed +at 0.99–1.01 of stock NCCL's bus bandwidth (all-reduce 23.46 against 23.28 GB/s +at 256 MiB), as the [release notes](release-0.1.0.md) state. Its per-collective +values are not tabulated above, no record of it is retained here, and it has +not been rerun with a later build. + +Two points are recorded inconsistently and no retained record settles them: + +- The release notes report a pair comparison of `NET_SIRCL_RELAXED_ORDERING=0` + against `=1` (ratios 0.98–1.02). No conditions or values for it are kept + here, so treat relaxed ordering disabled as unmeasured. +- The release notes say the path-of-four result used fabric-tool's path table; + the conditions above say the relays were configured with a different + installer from the SparkRing project. Which installer produced the 17.67 GB/s + run is not established. Either way the result does not qualify fabric-tool. + No serving performance or combined multi-sender relay qualification. CPU tests and shared-memory emulation do not establish physical forwarding, real NIC loss recovery, reboot restoration or NIC performance. The separate fabric-tool diff --git a/docs/qualification.md b/docs/qualification.md index 5bf0775..b407f00 100644 --- a/docs/qualification.md +++ b/docs/qualification.md @@ -11,6 +11,18 @@ restoration and safe emulation selection. The revision `ddc39fa07cd57010769a77094d0a6aad1efb9fbb`, compiled-library hashes, matched controls, results and limitations. +The revisions those records name are tagged, so they stay reachable: +`validation/2026-10-23-transport` (`ddc39fa`), `validation/2026-10-23-resource-ownership` +(`cf2301c`), `validation/2026-10-23-recovery` (`748142f`) and +`validation/2026-10-23-installer-coordination` (`5c76ef4`, which is later than +the revision that ran on hardware). + +**Release 0.1.3 is not covered by any row below.** Its plugin, topology parser +and fabric-tool differ from the tagged revisions (see the +[0.1.3 release notes](../RELEASE_NOTES-0.1.3.md)) and have been tested on CPU +only. Every **Qualified** entry applies to the revision and artifact its record +names, not to 0.1.3. + | Component | Conditions and measurement | Status and conclusion | |---|---|---| | Physical RDMA plugin | Artifacts identified by the two validation records; NCCL 2.32.3; four collectives, eager and graphs, 8 KiB–256 MiB | **Qualified** for the recorded topologies and artifacts. Transport controls total 72 sweeps; recovery checks add 16 four-host-path sweeps. Zero reported correctness errors or monitored error/drop growth. No throughput guarantee | diff --git a/docs/release-0.1.0.md b/docs/release-0.1.0.md index 4d13f79..034cff0 100644 --- a/docs/release-0.1.0.md +++ b/docs/release-0.1.0.md @@ -50,6 +50,14 @@ NCCL alone timed out, and a PyTorch DDP check passed on all four ranks. `NET_SIRCL_RELAXED_ORDERING=0` against `=1` measured no difference on a pair (ratios 0.98-1.02). +Later review found two of these statements recorded inconsistently, with no +retained record to settle them: [measurements](measurements.md) keeps no +conditions or values for the relaxed-ordering comparison, and it says the +path-of-four relays were configured with a SparkRing installer rather than +fabric-tool's path table. Treat relaxed ordering disabled as unmeasured and the +path result as not qualifying fabric-tool. The ring-of-four result stands; it +has not been rerun with a later build. + Known issue: on one cabled pair, one run in four of the all-gather line under CUDA-graph capture stopped with `transport retry counter exceeded` on one PCI function; three further runs passed. The cause is not yet established. diff --git a/docs/testing.md b/docs/testing.md index 4c864cb..7d2e87b 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -112,7 +112,7 @@ python3 scripts/check_release_safety.py . python3 scripts/check_release_safety.py --tree EXTRACTED_DIRECTORY ``` -The archive is `dist/net-sircl-0.1.2.tar.gz`, built from `git ls-files` in +The archive is `dist/net-sircl-0.1.3.tar.gz`, built from `git ls-files` in this repository, using current tracked-file bytes and fixed timestamps, ownership and modes. Stage added or deleted files before packaging; a release should be built from a clean commit. Untracked files cannot ship. A tracked @@ -132,7 +132,7 @@ extracted archive before building it, using the same rules. ## Source identity -The startup line `net-sircl transport-core 0.1.1 ABI 1 source ` contains +The startup line `net-sircl transport-core 0.1.2 ABI 1 source ` contains a digest of transport-core's C sources, headers, Python tools and VERSION. It is not a compiled-library checksum. Removing Python adaptation tools and changing packaging or the component version changes this digest. diff --git a/docs/transport-core.md b/docs/transport-core.md index ae548dd..3f8bc8e 100644 --- a/docs/transport-core.md +++ b/docs/transport-core.md @@ -17,7 +17,7 @@ the cap when nothing is in flight. This compatibility option is not the relayed admission policy. net-sircl atomically reserves separate forward and ACK credit and splits writes to fit. -Version 0.1.1 exposes ABI 1. An incompatible public API or data-layout change +Version 0.1.2 exposes ABI 1. An incompatible public API or data-layout change requires a new ABI number. This is separate from the plugin's wire version 6, which must agree between hosts. @@ -25,7 +25,7 @@ which must agree between hosts. `SOURCE.json` records the distributed source inventory separately from upstream provenance and the historical 0.1.0 measurement hashes. The version macro and its -test use 0.1.1; the ABI remains 1. The component version and ABI do not identify hardware-qualified source bytes. +test use 0.1.2; the ABI remains 1. The component version and ABI do not identify hardware-qualified source bytes. The following code is research-only and is not part of the plugin's transport: - `transport-core/src/fabric.c` and `include/sircl_fabric.h`: collective planner diff --git a/examples/ring4.topology b/examples/ring4.topology index 2073ec9..66c6783 100644 --- a/examples/ring4.topology +++ b/examples/ring4.topology @@ -1,4 +1,4 @@ # Replace names. Port 0 -> next host's port 1, including last -> first. -# Status: route derivation CPU-tested; not run on hardware. +# Status: ran nccl-tests with the 0.1.0 transport; later builds are CPU-tested only on this layout. hosts node-0 node-1 node-2 node-3 cabling ring diff --git a/fabric-tool/README.md b/fabric-tool/README.md index de4b370..b492229 100644 --- a/fabric-tool/README.md +++ b/fabric-tool/README.md @@ -4,7 +4,7 @@ fabric-tool configures relays between directly cabled DGX Sparks: NIC forwarding rules on intermediate hosts, sender IP routes and neighbour entries, and a per-NIC marker process that tags outgoing RDMA packets with the number of relays to cross. It reads net-sircl's topology file. -Version **0.1.2**, Apache-2.0; derived from the SparkRing project, see +Version **0.1.3**, Apache-2.0; derived from the SparkRing project, see [LICENSE](LICENSE) and [NOTICE](NOTICE). Status: research-only. The tool implements relay planning, ownership checks, diff --git a/fabric-tool/VERSION b/fabric-tool/VERSION index d917d3e..b1e80bb 100644 --- a/fabric-tool/VERSION +++ b/fabric-tool/VERSION @@ -1 +1 @@ -0.1.2 +0.1.3 diff --git a/net-sircl/VERSION b/net-sircl/VERSION index d917d3e..b1e80bb 100644 --- a/net-sircl/VERSION +++ b/net-sircl/VERSION @@ -1 +1 @@ -0.1.2 +0.1.3 diff --git a/scripts/check_e2e.py b/scripts/check_e2e.py index 383892d..99970fe 100644 --- a/scripts/check_e2e.py +++ b/scripts/check_e2e.py @@ -55,7 +55,8 @@ def main(): for rank in range(2): log = (output / f"rank{rank}.log").read_text() release = (ROOT / "net-sircl/VERSION").read_text().strip() - if f"net-sircl {release} (wire version 6)" not in log or "transport-core 0.1.1 ABI 1 source " not in log: + core = (ROOT / "transport-core/VERSION").read_text().strip() + if f"net-sircl {release} (wire version 6)" not in log or f"transport-core {core} ABI 1 source " not in log: raise RuntimeError("rank log lacks the current plugin or transport-core identity; rebuild with make emu") return 0 diff --git a/tests/test_release.py b/tests/test_release.py index d22a286..dd55457 100644 --- a/tests/test_release.py +++ b/tests/test_release.py @@ -42,9 +42,11 @@ def test_archive_reproducible_and_complete(self): self.assertEqual(names, tracked) self.assertEqual(len(names), len(members)) for required in ("README.md", "LICENSE", "NOTICE", "Makefile", "SOURCE.json", - "examples/pair.topology", ".github/workflows/ci.yml", + "examples/pair.topology", "examples/ring4-two-hca.topology", + ".github/workflows/ci.yml", "net-sircl/nccl/LICENSE.txt", "docs/transport-core.md", - "RELEASE_NOTES-0.1.1.md", "RELEASE_NOTES-0.1.2.md", "net-sircl/ROUTE-ALLOWANCE.md", + "RELEASE_NOTES-0.1.1.md", "RELEASE_NOTES-0.1.2.md", "RELEASE_NOTES-0.1.3.md", + "net-sircl/ROUTE-ALLOWANCE.md", "net-sircl/net_sircl_tuner.h", "net-sircl/nccl/tuner_v4.h", "examples/torch_teardown.py", "scripts/check_teardown.py", "scripts/check_channels.py", "scripts/check_compat.py", @@ -62,6 +64,26 @@ def test_archive_reproducible_and_complete(self): self.assertEqual(archive.extractfile(member).read(), (ROOT / member.name).read_bytes()) self.assertEqual(member.mtime, 0) + def test_version_strings_agree(self): + # One version per component, stated in several places: none may drift from its VERSION file. + plugin = (ROOT / "net-sircl/VERSION").read_text().strip() + core = (ROOT / "transport-core/VERSION").read_text().strip() + fabric = (ROOT / "fabric-tool/VERSION").read_text().strip() + manifest = json.loads((ROOT / "SOURCE.json").read_text()) + self.assertEqual(manifest["plugin_version"], plugin) + self.assertEqual(manifest["core_version"], core) + self.assertEqual(manifest["fabric_tool"]["version"], fabric) + header = (ROOT / "transport-core/include/sircl_core/core.h").read_text() + self.assertIn(f'#define SIRCL_CORE_VERSION "{core}"', header) + self.assertIn(f"#define SIRCL_CORE_ABI {manifest['core_abi']}u", header) + self.assertIn(f"#define NET_SIRCL_VERSION {manifest['plugin_wire_version']} ", + (ROOT / "net-sircl/net_sircl.h").read_text()) + self.assertIn(f"Version **{plugin}**", (ROOT / "README.md").read_text()) + self.assertIn(f"Version **{fabric}**", (ROOT / "fabric-tool/README.md").read_text()) + self.assertIn(f"Version {core}, ABI", (ROOT / "transport-core/README.md").read_text()) + self.assertTrue((ROOT / f"RELEASE_NOTES-{plugin}.md").is_file()) + self.assertIn(f"dist/net-sircl-{plugin}.tar.gz", (ROOT / ".github/workflows/ci.yml").read_text()) + def test_release_identity_is_built_in(self): subprocess.run(["make", "-C", str(ROOT / "net-sircl"), "emu"], check=True) library = ctypes.CDLL(str(ROOT / "net-sircl/libnccl-net-sircl-emu.so")) diff --git a/transport-core/README.md b/transport-core/README.md index 6b258a1..8f8ac4a 100644 --- a/transport-core/README.md +++ b/transport-core/README.md @@ -3,7 +3,7 @@ The C11 library provides device and GID discovery, reliable-connected (RC) queue-pair setup, host-memory registration, posting and completion primitives, window arithmetic, topology parsing and a shared-memory RDMA emulator. -Version 0.1.1, ABI 1. It contains no CUDA kernels or NCCL collective algorithms. +Version 0.1.2, ABI 1. It contains no CUDA kernels or NCCL collective algorithms. From this directory, `make` builds the library and `make check` runs CPU tests. Builds require a C compiler, pthreads, Python 3 and rdma-core headers. Tests use diff --git a/transport-core/VERSION b/transport-core/VERSION index 17e51c3..d917d3e 100644 --- a/transport-core/VERSION +++ b/transport-core/VERSION @@ -1 +1 @@ -0.1.1 +0.1.2 diff --git a/transport-core/include/sircl_core/core.h b/transport-core/include/sircl_core/core.h index b1f7f04..d04918d 100644 --- a/transport-core/include/sircl_core/core.h +++ b/transport-core/include/sircl_core/core.h @@ -13,7 +13,7 @@ extern "C" { #define SIRCL_CORE_API #endif #define SIRCL_CORE_ABI 1u -#define SIRCL_CORE_VERSION "0.1.1" +#define SIRCL_CORE_VERSION "0.1.2" #define SIRCL_CORE_MAX_POSITIONS 64 #define SIRCL_CORE_MAX_LANES 2 SIRCL_CORE_API unsigned sircl_core_abi(void); diff --git a/transport-core/tests/test_core.c b/transport-core/tests/test_core.c index 6378714..0a775e7 100644 --- a/transport-core/tests/test_core.c +++ b/transport-core/tests/test_core.c @@ -19,7 +19,7 @@ static void *worker(void *unused) { static int poller(void *ctx, unsigned budget) { (*(unsigned *)ctx)++; return (int)budget; } static int broken(void *ctx, unsigned budget) { (void)ctx; return (int)budget + 1; } int main(void) { - CHECK(sircl_core_abi() == 1 && !strcmp(sircl_core_version(), "0.1.1")); + CHECK(sircl_core_abi() == 1 && !strcmp(sircl_core_version(), "0.1.2")); CHECK(sircl_core_window_room(64, 64) == 0 && sircl_core_window_room(64, 65) == 0); CHECK(sircl_core_window_room(0, 10) == UINT64_MAX); CHECK(!sircl_core_window_claim(&flight, &high, 64, 65, 0));