Skip to content

ggml-rpc: exchange a mesh partial over 1 MiB as pieces sent to every peer at once - #24

Merged
lukekim merged 4 commits into
spiceai-b11999from
lukim/b11999-mesh-chunked
Nov 3, 2026
Merged

lukekim merged 4 commits into
spiceai-b11999from
lukim/b11999-mesh-chunked

Conversation

@lukekim

@lukekim lukekim commented Nov 1, 2026 •

Copy link
Copy Markdown

What this changes

On a mesh whose links are all RDMA (more than two ranks), an all-reduce partial larger than RPC_COMM_MESH_EAGER_BYTES (1 MiB) went pair by pair: one transfer at a time, in rank order, though each pair of ranks has its own link. It now goes as pieces of at most 1 MiB, each sent to every peer before any is received, so the pieces travel on every link at once.

On by default. The ranks agree on it when the mesh forms: the mesh exchanges in pieces only if every rank's links are all RDMA and no rank sets GGML_RPC_COMM_CHUNKED=0; otherwise every rank exchanges pair by pair. The switch is read then (flag:<path> works as for the other comm switches, and takes effect when the next mesh forms). A mesh with a TCP link, a two-rank comm, and every partial up to 1 MiB (every decode-sized one) take the same path as before. Each rank logs at setup which way its mesh exchanges.

Why it is safe

  • Every rank frames a partial the same way. Pieces change what a large partial looks like on the wire, so no rank decides alone: when the mesh forms, each tells every peer whether it can and wants to exchange in pieces, and the mesh does only if all of them do. A peer that sends no answer within the setup deadline fails the mesh's setup, not a later all-reduce.
  • The ring bound is the eager exchange's. A rank sends piece k+1 only after it has read piece k from every peer, so a link never holds more than two unread pieces: the same two exchanges of at most 1 MiB that consecutive eager all-reduces already leave unread, which the 24 × 256 KiB receive ring is sized for.
  • A mismatch fails instead of hanging. Every piece carries the whole partial's header, its all-reduce sequence number and total size, as the other exchanges' headers do, so a peer on another all-reduce or with a partial of another size fails at the first piece. The agreement's receives run over RDMA, so a receive deadline now bounds RDMA receives (Linux and Apple) as it bounds TCP ones: a peer of a build without the agreement fails the mesh's setup at its 30 s deadline instead of holding COMM_INIT.
  • The sums are unchanged. Every piece lands at its offset in the peer's partial, and the partials are summed in rank order after the exchange, as before, so every rank holds the same bits. Each piece carries the all-reduce's sequence number and its size, so a rank reading another all-reduce's piece fails instead of summing it.

Why

A tensor split all-reduces two partials per layer, and prompt processing makes them large: a 512-token chunk of a 2560-wide model is 5 MiB per partial. Exchanging them one link at a time left two of the three links idle.

Measured on three DGX Spark (GB10) nodes, each pair joined by its own 200 GbE RoCE link, every model split three ways (-sm tensor, one rank per node). Base = spiceai-b11999 (f3bce26), branch = this PR's first commit on it (built from the same tree; the agreement commit is measured separately below); llama-bench -fa 1 --load-mode dio -ub 512 -n 0 -r 5, arms interleaved base, branch, branch, base (the RPC servers restarted per arm), nothing in the environment but the mesh's own variables. Each cell is the arm's slowest and fastest of its 5 repetitions, tok/s:

model test base (n=5) branch (n=5) branch (n=5) base (n=5)
Qwen3.8-Flash-Next UD-Q3_K_XL pp512 682.00–701.00 784.85–814.40 796.39–825.43 657.28–679.34
pp2048 660.78–678.01 759.27–779.82 769.27–788.55 638.00–652.94
DeepSeek-V4.1-Flash UD-Q2_K_XL pp512 330.65–334.51 388.73–398.04 391.23–398.45 325.43–328.50
pp2048 335.30–342.90 399.24–404.27 399.97–405.24 327.42–333.50
GLM-5.3-Flash Q2_K_XL pp512 349.34–359.86 415.95–426.50 415.02–425.90 350.98–360.25
pp2048 335.30–343.00 388.42–397.85 394.22–404.55 338.17–345.15

On every row the slowest branch repetition beats the fastest base repetition (n=10 each side).

Every repetition, tok/s
model test base branch branch base
Qwen3.8 pp512 682.00, 698.64, 701.00, 699.70, 697.79 784.85, 810.79, 814.40, 811.29, 811.27 796.39, 817.83, 820.58, 824.71, 825.43 657.28, 676.61, 679.34, 677.70, 675.11
pp2048 660.78, 665.10, 676.21, 678.01, 669.33 759.27, 764.12, 777.38, 779.82, 766.24 769.27, 778.26, 788.55, 787.35, 775.81 638.00, 643.06, 651.34, 652.94, 645.22
DeepSeek-V4.1 pp512 330.65, 333.74, 332.96, 333.07, 334.51 388.73, 398.04, 392.21, 397.41, 395.24 391.23, 398.45, 397.50, 395.40, 397.74 325.43, 327.88, 328.50, 327.03, 327.06
pp2048 335.30, 336.90, 338.53, 339.45, 342.90 399.24, 399.40, 401.85, 404.00, 404.27 399.97, 400.39, 404.10, 405.24, 404.85 327.42, 331.49, 333.15, 333.50, 330.74
GLM-5.3 pp512 349.34, 359.23, 355.70, 359.86, 355.49 415.95, 426.50, 425.68, 425.83, 425.74 415.02, 425.90, 424.58, 425.83, 425.62 350.98, 360.25, 359.84, 358.85, 357.47
pp2048 338.07, 335.30, 342.26, 343.00, 338.86 391.29, 388.42, 396.77, 397.85, 393.01 396.72, 394.22, 403.43, 404.55, 399.44 338.17, 338.21, 344.32, 345.15, 342.48

Decode cannot reach the change: a decode step's partials are a few tokens wide, tens of KB, far under the 1 MiB threshold. Measured anyway, Qwen3.8 -p 0 -n 128 -r 10, the same interleaved order, each arm's range over its 10 repetitions: base 36.36–39.39, branch 38.26–39.58, branch 38.46–40.07, base 38.55–39.75 tok/s. The two base arms alone differ by 2.8 tok/s (medians 36.73 and 39.49), so decode shows no change inside that same-build noise.

Through the Spice runtime's llama.cpp engine (the same exchange on the fork's earlier b11803 line, before the agreement, switched live with flag: inside each loaded server, Qwen3.8 as above, two sessions): a cold 3,754-token prompt took 6.07 / 5.98 s off and 5.15 / 5.21 s on (−14 %), and the first bench after loading, off in one session and on in the other, gave greedy replies to 8 fixed prompts identical on all 8.

Testing

  • test-rpc-comm-mesh over the RDMA mesh (three ggml-rpc-servers, one per node, CPU device unless stated), all-reduces of 1, 7168, 300007 and 4000037 floats; the last two are over 1 MiB:
    • First commit: world 3 passes on the base, on the branch, on the branch with GGML_RPC_COMM_CHUNKED=0 on every rank, and on the branch with CUDA servers (the stream-staged path). All three ranks log the pieces on the branch, none on the base or with the switch at 0.
    • Switch at 0 on one rank only (the case the agreement fixes). First commit: the 1- and 7168-float all-reduces pass, then the 300007-float one fails and the test aborts, the rank with the switch off logging rank 1 expected all-reduce 3 of 1200028 bytes from rank 0, got 3 of 1048576 bytes and the others lost rank 1 during all-reduce 3. With the agreement: world 3 passes all four sizes, the two ranks with the switch on log that a rank of the mesh has a TCP link or GGML_RPC_COMM_CHUNKED=0, so partials over 1 MiB go pair by pair, and no rank logs pieces.
    • With the agreement and the switch on everywhere: world 3 passes all four sizes and all three ranks log the pieces, with CPU and with CUDA servers.
    • A rank of a build without the agreement (rank 1 on the base, ranks 0 and 2 on this PR): before the deadline fix, COMM_INIT never returned and the test was killed at 120 s; with it, the test ends after 31 s with world 3: the comm did not initialize, ranks 0 and 2 logging RDMA recv failed: past its deadline.
    • After the deadline fix, all four sizes pass with the switch on everywhere (pieces on all three ranks, CPU and CUDA servers) and with GGML_RPC_COMM_CHUNKED=0 on one rank (pair by pair).
    • Every run on every build also reports one failure, the test's world-2 mesh, which cannot form on this topology: it reuses the three-rank GGML_RPC_COMM_HOSTS list, whose entries for the third rank are invalid at world 2. The world-2 pairwise comm passes all four sizes in every run.
  • The agreement costs nothing measurable: it runs once, when the mesh forms. Qwen3.8 llama-bench -p 2048 -n 0 -r 5, first commit vs both commits, interleaved first, both, both, first, tok/s: 763.48, 764.34, 781.31, 778.81, 766.03 / 761.01, 764.52, 782.96, 778.04, 763.78 / 784.78, 789.77, 806.09, 804.33, 793.81 / 768.56, 770.18, 789.75, 784.58, 775.47. The first agreement arm's range (761.01–782.96) contains that of the first-commit arm before it (763.48–781.31), and the second overlaps the first-commit arm after it (both builds ran faster in the later runs), so no change.
  • llama-perplexity on Qwen3.8 (wiki.test.raw, -c 2048 -b 2048 -ub 512, 4 chunks): base and branch print the same per-chunk values ([1]1.4155 [2]1.4048 [3]1.4938 [4]1.9963) and the same estimate, PPL = 1.9963 ± 0.05226, at 4.67 and 4.14 s per pass.
  • test-rpc-transport passes on Linux, base and branch.
  • Prefill after the deadline fix, Qwen3.8 llama-bench -p 2048 -n 0 -r 5, arms interleaved, tok/s: with the fix 765.41–784.64, 778.06–799.47, 786.55–808.63; without 773.53–795.37, 762.06–783.58, 759.59–775.73. The ranges overlap, so no change.
  • macOS (arm64, macOS 27.2, Metal build, a clean build directory with -DGGML_CCACHE=OFF), on the first commit and again with the agreement: test-rpc-comm-mesh (world 3 and world 2, all four sizes, and the pairwise comm), test-rpc-transport and test-rpc-multi-server pass under ctest. Their servers are on loopback TCP, where the mesh exchanges pair by pair, so these show that path unchanged; the pieces are exercised by the RDMA runs above.
  • Four and five ranks over RDMA on 4d74009: two ggml-rpc-servers shared a host where the three Sparks ran out. Every link came up over RDMA, the same-host ones included, and every rank logged the pieces. Every size held the exact sum on every rank (run in a comment below). Four and five ranks also pass on loopback TCP, which goes pair by pair.
  • Not run: a two-rank NCCL split.
  • The Apple RDMA receive deadline (4d74009) is unverified at runtime, code inspection only: no Apple RDMA peers were available. It builds on macOS with the Apple transport and the RPC ctests pass, and it makes the Apple receive check its deadline where the Linux receive and TCP already do.

…peer at once

On a mesh whose links are all RDMA, a partial larger than RPC_COMM_MESH_EAGER_BYTES went pair by pair:
one transfer at a time, though each pair of ranks has its own link. A tensor split's prompt chunk all-reduces
such partials (a 512-token chunk of a 2560-wide model is 5 MiB). It now goes as pieces of at most 1 MiB, each
sent to every peer before any is received, so the pieces travel on every link at once. A rank sends piece k+1
only after it has read piece k from every peer, so a link never holds more than two unread pieces, the bound the
eager exchange already relies on. The partials are summed in rank order as before.

On by default; GGML_RPC_COMM_CHUNKED=0 restores the pair-by-pair exchange.
Copilot AI balanced review requested due to automatic review settings November 1, 2026 18:52
@github-actions github-actions Bot added the ggml label Nov 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Per-rank chunking decisions can produce incompatible wire framing and fail large all-reduces, requiring all ranks to agree on the exchange mode and use a mesh-wide fallback when any link is TCP.

1 open issue
What changed in this PR

This PR adds chunked exchange for large RPC mesh all-reduce partials, aiming to improve prompt-processing throughput on RDMA meshes with more than two ranks.

Changes:

  • Exchanges partials larger than 1 MiB in bounded pieces, sending each piece to all peers before receiving.
  • Adds the default-on GGML_RPC_COMM_CHUNKED switch, including flag: support and one-time logging.
  • Validates each piece's sequence and size while preserving rank-ordered summation.
File Description
ggml/​src/​ggml-rpc/​ggml-rpc.cpp Adds chunked mesh exchange, runtime mode selection, header checks, and logging.

Review effort: Balanced

Comment thread ggml/src/ggml-rpc/ggml-rpc.cpp Resolved
Exchanging a large partial in pieces changes what it looks like on the wire, but each rank decided on its own:
from its own links (all RDMA or not) and from its own GGML_RPC_COMM_CHUNKED, read again at every all-reduce. A rank
with a TCP link, or one with the switch set differently, expected the whole partial where its peers sent pieces,
and the all-reduce failed. The ranks now agree when the mesh forms: each tells every peer whether it wants pieces,
and the mesh exchanges in pieces only when all of them do. The switch is read then. A peer whose build sends no
answer fails the mesh's setup within its deadline rather than reading the agreement as a partial.
Copilot AI balanced review requested due to automatic review settings November 1, 2026 19:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Critical defects can cause indefinite hangs because RDMA setup waits lack enforced deadlines and chunk headers fail to detect unequal total partial sizes.

2 open issues
1 resolved since last review

Review effort: Balanced

Comment thread ggml/src/ggml-rpc/ggml-rpc.cpp Resolved
Comment thread ggml/src/ggml-rpc/ggml-rpc.cpp Resolved
…ves at their deadline

A piece's header gave only the piece's own size, so ranks whose partials differed in size could read pieces of the
sizes they expected: the rank with the smaller partial finished while its peers waited for pieces it never sent. Every
piece's header now carries the whole partial's sequence number and size, as the other exchanges' headers do, so such
a peer fails at the first piece; a piece's own size follows from its offset.

The agreement's receives run after the links have moved to RDMA, where a receive ignored its deadline, so a peer of a
build that sends no agreement held COMM_INIT forever. A receive deadline now bounds RDMA receives too, on Linux and
Apple: past it the receive fails, as over TCP, and the mesh's setup fails when its deadline passes.
Copilot AI balanced review requested due to automatic review settings November 2, 2026 00:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The receive loop can accept an immediately available agreement frame after the shared deadline expires because it checks the deadline only after empty polls.

2 open issues
1 resolved since last review

Review effort: Balanced

Comment thread ggml/src/ggml-rpc/transport-apple.cpp Resolved
…ed data

The Apple transport checked a receive's deadline only while it waited on an empty queue, so a frame already queued
was read after the deadline had passed. It now checks at every pass of the receive loop, as the Linux transport and
TCP do, and a receive past its deadline breaks the connection.
Copilot AI balanced review requested due to automatic review settings November 2, 2026 03:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Hardware-backed runtime validation is still needed for Apple RDMA timeout and queued-frame behavior, as well as the default-on chunked protocol above three ranks.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

@lukekim

lukekim commented Nov 2, 2026

Copy link
Copy Markdown
Author

More than three ranks, on 4d74009. macOS arm64, the clean build-pr build (Release, -DGGML_CCACHE=OFF, Metal, GGML_RPC_RDMA=ON), CPU ggml-rpc-servers on loopback, 2026-11-02.

What this run cannot cover: the pieces themselves. A rank exchanges in pieces only when every one of its links is RDMA (rpc_comm_mesh_eager), and loopback links are TCP. So at 4 and 5 ranks every rank wants pair by pair, and the partials over 1 MiB (300007 and 4000037 floats) go pair by pair. The chunked framing with more than three ranks is still unrun.

What it does cover:

  • the mesh forming at 4 and 5 ranks, with the agreement exchanged between every pair in rank order;
  • every size, including the two over 1 MiB, in the pair-by-pair exchange;
  • the client's refusal of unequal element counts.

test-rpc-comm-mesh against N servers on 127.0.0.1, started the way tests/test-rpc-comm-mesh.sh starts its three:

=== 4 ranks
$ build-pr/bin/test-rpc-comm-mesh 127.0.0.1:42468 127.0.0.1:42478 127.0.0.1:42488 127.0.0.1:42498
world 4, 1 floats: ok
world 4, 7168 floats: ok
world 4, 300007 floats: ok
world 4, 4000037 floats: ok
world 2, 1 floats: ok
world 2, 7168 floats: ok
world 2, 300007 floats: ok
world 2, 4000037 floats: ok
world 2, 1 floats: ok
world 2, 7168 floats: ok
world 2, 300007 floats: ok
world 2, 4000037 floats: ok
exit 0
=== 5 ranks
$ build-pr/bin/test-rpc-comm-mesh 127.0.0.1:43692 127.0.0.1:43702 127.0.0.1:43712 127.0.0.1:43722 127.0.0.1:43732
world 5, 1 floats: ok
world 5, 7168 floats: ok
world 5, 300007 floats: ok
world 5, 4000037 floats: ok
world 2, 1 floats: ok
world 2, 7168 floats: ok
world 2, 300007 floats: ok
world 2, 4000037 floats: ok
world 2, 1 floats: ok
world 2, 7168 floats: ok
world 2, 300007 floats: ok
world 2, 4000037 floats: ok
exit 0

Each server's log: joined a N-rank mesh comm as rank i on every rank, for N = 4 and N = 5, and no in pieces, did not agree or past its deadline lines.

The unequal-count refusal, from a one-off client that is not part of the PR. Against N fresh servers, it all-reduces 300007 floats on every rank but the last and 300008 there, then 300007 everywhere:

=== 4 ranks
$ ./unequal 127.0.0.1:44405 127.0.0.1:44415 127.0.0.1:44425 127.0.0.1:44435
world 4, unequal element counts (300007 on all but the last rank, 300008 there): all-reduce refused
world 4, equal element counts (300007 on every rank): all-reduce accepted, every rank holds the exact sum
ok
exit 0
=== 5 ranks
$ ./unequal 127.0.0.1:42121 127.0.0.1:42131 127.0.0.1:42141 127.0.0.1:42151 127.0.0.1:42161
world 5, unequal element counts (300007 on all but the last rank, 300008 there): all-reduce refused
world 5, equal element counts (300007 on every rank): all-reduce accepted, every rank holds the exact sum
ok
exit 0

@lukekim

lukekim commented Nov 2, 2026

Copy link
Copy Markdown
Author

Four and five ranks over RDMA, on 4d74009 (the lab build's tree, 15bc18be9f27, equals this head's), 2026-11-02. Three DGX Sparks, each pair joined by its own 200 GbE RoCE link, CPU ggml-rpc-servers. Where the Sparks ran out, two servers shared a host (ranks 0 and 3 on one, ranks 1 and 4 on another), and a rank reached its sibling on the same host at that host's own address.

GGML_RPC_COMM_HOSTS listed each pair's link. With a three-rank or larger list, the test's world-2 mesh phase cannot form, as before, so each run reports that one failure. Its world-2 pairwise comm passes.

-- world 4 03:30:33: test-rpc-comm-mesh <addr>:50052 <addr>:50052 <addr>:50052 <addr>:50062
   ggml_backend_rpc_comm_init: 4-rank mesh communicator initialized
   world 4, 1 floats: ok
   world 4, 7168 floats: ok
   world 4, 300007 floats: ok
   world 4, 4000037 floats: ok
   rpc_comm_mesh_hosts: GGML_RPC_COMM_HOSTS entry '2:0=<addr>' is not i:j=host with j < i < 2
   world 2: the comm did not initialize
   ggml_backend_rpc_comm_init: pairwise communicator initialized (<addr>:50052 <-> <addr>:50052)
   world 2, 1 floats: ok
   world 2, 7168 floats: ok
   world 2, 300007 floats: ok
   world 2, 4000037 floats: ok
   1 failures
   1
   rank 0 (host:50052): 1 accepted rank 1 over RDMA;1 accepted rank 2 over RDMA;1 accepted rank 3 over RDMA;1 in pieces sent to every peer;1 joined a 4-rank mesh comm as rank 0;
   rank 1 (host:50052): 1 accepted rank 2 over RDMA;1 accepted rank 3 over RDMA;1 in pieces sent to every peer;1 joined a 4-rank mesh comm as rank 1;1 reaches rank 0 at <addr> over RDMA;
   rank 2 (host:50052): 1 accepted rank 3 over RDMA;1 in pieces sent to every peer;1 joined a 4-rank mesh comm as rank 2;1 reaches rank 0 at <addr> over RDMA;1 reaches rank 1 at <addr> over RDMA;
   rank 3 (host:50062): 1 in pieces sent to every peer;1 joined a 4-rank mesh comm as rank 3;1 reaches rank 0 at <addr> over RDMA;1 reaches rank 1 at <addr> over RDMA;1 reaches rank 2 at <addr> over RDMA;
-- world 5 03:30:49: test-rpc-comm-mesh <addr>:50052 <addr>:50052 <addr>:50052 <addr>:50062 <addr>:50062
   ggml_backend_rpc_comm_init: 5-rank mesh communicator initialized
   world 5, 1 floats: ok
   world 5, 7168 floats: ok
   world 5, 300007 floats: ok
   world 5, 4000037 floats: ok
   rpc_comm_mesh_hosts: GGML_RPC_COMM_HOSTS entry '2:0=<addr>' is not i:j=host with j < i < 2
   world 2: the comm did not initialize
   ggml_backend_rpc_comm_init: pairwise communicator initialized (<addr>:50052 <-> <addr>:50052)
   world 2, 1 floats: ok
   world 2, 7168 floats: ok
   world 2, 300007 floats: ok
   world 2, 4000037 floats: ok
   1 failures
   1
   rank 0 (host:50052): 1 accepted rank 1 over RDMA;1 accepted rank 2 over RDMA;1 accepted rank 3 over RDMA;1 accepted rank 4 over RDMA;1 in pieces sent to every peer;1 joined a 5-rank mesh comm as rank 0;
   rank 1 (host:50052): 1 accepted rank 2 over RDMA;1 accepted rank 3 over RDMA;1 accepted rank 4 over RDMA;1 in pieces sent to every peer;1 joined a 5-rank mesh comm as rank 1;1 reaches rank 0 at <addr> over RDMA;
   rank 2 (host:50052): 1 accepted rank 3 over RDMA;1 accepted rank 4 over RDMA;1 in pieces sent to every peer;1 joined a 5-rank mesh comm as rank 2;1 reaches rank 0 at <addr> over RDMA;1 reaches rank 1 at <addr> over RDMA;
   rank 3 (host:50062): 1 accepted rank 4 over RDMA;1 in pieces sent to every peer;1 joined a 5-rank mesh comm as rank 3;1 reaches rank 0 at <addr> over RDMA;1 reaches rank 1 at <addr> over RDMA;1 reaches rank 2 at <addr> over RDMA;
   rank 4 (host:50062): 1 in pieces sent to every peer;1 joined a 5-rank mesh comm as rank 4;1 reaches rank 0 at <addr> over RDMA;1 reaches rank 1 at <addr> over RDMA;1 reaches rank 2 at <addr> over RDMA;1 reaches rank 3 at <addr> over RDMA;

On every rank of both meshes, every link came up over RDMA, the same-host ones included, and the rank logged in pieces sent to every peer. Every size, including the two over 1 MiB, held the rank-order sum bit for bit on every rank (ok).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Apple RDMA receive deadlines still need maintainer validation on hardware for timeout and queued-frame behavior, since the reported macOS tests cover only loopback TCP.

No open issues 🎉

Review effort: Balanced

@lukekim

lukekim commented Nov 2, 2026

Copy link
Copy Markdown
Author

On 4d74009, the first attempt of windows / x64-openblas failed in its Test step (job 125071552809): test-thread-safety ... Exit code 0xc0000374***Exception: 81.80 sec. The test had already logged All threads finished without errors, so the heap corruption came at exit. The rerun of the same commit passed (job 125080111686, attempt 2: test-thread-safety ... Passed 53.28 sec, 100% of 9 tests passed).

The cause is not established, and the same commit passed on rerun. What is known about it:

@lukekim

lukekim commented Nov 2, 2026 •

Copy link
Copy Markdown
Author

Declined for now: Copilot's review 5731851038 (🔵, no open issues) asks for the Apple RDMA receive deadline to be validated on Apple hardware, and that can't run here.

Not done: no Apple RDMA hardware here. Running it needs two Macs joined over Thunderbolt RDMA, which we don't have. So the Apple path's deadline check (4d74009, apple_rdma::recv checks the deadline at the top of every pass, before reading queued data) is unverified at runtime, code inspection only, as the description says. What has run on this head:

  • macOS, with the Apple RDMA transport compiled in: the build succeeds, the three RPC ctests pass, and loopback TCP meshes at 4 and 5 ranks give exact sums at every size (comment).
  • Linux over RDMA: 4- and 5-rank meshes give exact sums at every size, and every rank sends its partials in pieces (comment). The deadline fixes this PR makes on the Linux and TCP paths were run there too: a rank on the old build now fails at its deadline instead of hanging.
  • Windows: windows / x64-openblas failed once and passed on rerun of the same commit; the cause isn't established (comment).

This needs a maintainer's call on the Apple path: approve with that path labelled unverified, or wait for someone with two Thunderbolt-RDMA Macs.

@lukekim lukekim self-assigned this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants