Result: what one more barrier per loop step costs on GB10
The measurement registered in v0.3-barrier-sync-plan.md, read by its frozen rules. Diagnostic: no core, profile or rule changes.
Capture
- Measurement commit
cb28677. Binary built on Spark 1 with CUDA 13.0 forsm_121a, SHA-2561c25c2fd5ceb8e914c4f63a90d2a1a4e3a1e93abc2ab65ac2bbe8d87985e80c3. The assembler check passed on this binary before the capture: every one of the 18 instances has exactlyBBAR.SYNCandWFFMAper loop iteration (sass-check-capture.json). - One session on 2026-11-27, build from 22:43:16 UTC, capture from 22:44:57 to 22:45:17 UTC, all under the GPU lock. The quiet-host gate passed; the pilot froze the 72 points; three processes, all host-checked and valid (busiest second 5.3% to 5.5%), no replacement used; every launch passed
long_launch.verify. SM clock 2508 to 2562 MHz across the points. - Raw: capture.json, pilot.json, the freeze, and the reading computed by
microbench/barrier_step.py judgeagainstprofiles/gb10-0.23.0.json, judge.json.
Reading 1: capture rules
Rules 1 and 2: 0 failing lists in each process (3 and 10 allowed). Rule 3: 0 of 72 points (3 allowed). No point fails a rule, so every configuration is read.
Readings 2 to 4
Per-step time t(B) in ns, the median of the three processes; d1 = t(1) - t(0); b the least-squares slope over B = 1, 2, 4, 8, 14 (median of the processes). The profile's fixed_sync_ns for one buffer is 26.0 ns at 4 warps and 29.2 ns at 8 warps.
W | Warps | Grid | t(0) | t(1) | t(14) | d1 | b | Barrier-free step | Barrier count | Linear |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 4 | 1 | 10.9 | 12.4 | 114.2 | 1.4 | 7.86 | not resolved | matters | yes |
| 0 | 4 | 48 | 10.9 | 12.1 | 113.3 | 1.2 | 7.80 | not resolved | matters | yes |
| 0 | 8 | 1 | 10.9 | 15.2 | 157.2 | 4.3 | 10.93 | not resolved | matters | yes |
| 0 | 8 | 48 | 10.9 | 15.2 | 157.0 | 4.3 | 10.92 | not resolved | matters | yes |
| 64 | 4 | 1 | 30.1 | 34.4 | 117.2 | 4.3 | 6.62 | not resolved | matters | no |
| 64 | 4 | 48 | 30.1 | 34.4 | 117.4 | 4.3 | 6.63 | not resolved | matters | no |
| 64 | 8 | 1 | 53.4 | 61.4 | 179.0 | 8.0 | 9.38 | not resolved | matters | no |
| 64 | 8 | 48 | 53.2 | 61.0 | 179.3 | 7.8 | 9.44 | not resolved | matters | no |
| 512 | 4 | 1 | 239.5 | 241.8 | 245.7 | 2.2 | 0.23 | pays it | does not matter | |
| 512 | 4 | 48 | 246.4 | 248.0 | 246.6 | 1.7 | -0.18 | pays it | does not matter | |
| 512 | 8 | 1 | 410.1 | 523.2 | 588.4 | 112.9 | 5.20 | does not pay the barrier cost | matters | no |
| 512 | 8 | 48 | 408.6 | 533.4 | 586.9 | 124.8 | 4.55 | does not pay the barrier cost | matters | yes |
By the frozen rules:
- Reading 2, the barrier-free step. Two configurations read "does not pay the barrier cost" (
W= 512 at 8 warps): the first barrier adds 113 to 125 ns, far above the profile's 29.2 ns. Two read "pays it" (W= 512 at 4 warps): one barrier changes the step by under 5%. The other eight are not resolved: atW= 0 and 64 the first barrier adds 1.2 to 8.0 ns, more than 5% oft(1)but less than half offixed_sync_ns. - Reading 3, the barrier count. It matters in ten configurations and does not in two (
W= 512 at 4 warps, where the barriers are hidden by the work). - Reading 4, linear in the count. Linear at
W= 0 (largest residual 1.6% to 4.7%) and in one of the twoW= 512, 8-warp configurations; not linear atW= 64, where the first barriers are partly hidden (trises by 1 to 5 ns up to 4 barriers, then by about 8 to 9 ns per barrier), nor in the otherW= 512, 8-warp configuration (largest residual 8.1%).
Reported without a verdict
- Size against the profile. On an empty step (
W= 0) one more barrier costs 7.8 ns at 4 warps and 10.9 ns at 8 warps, about 20 and 28 SM cycles at the median measured clock (2560 MHz): about a third offixed_sync_ns(26.0 and 29.2 ns), whose kernel also waits for and commits an asynchronous copy group every step. - One CTA against all SMs (all SMs over one CTA, median of the processes). At
W= 0 and 64, within 2% at every barrier count (largest -1.95%). AtW= 512: at 4 warps +2.6% to +2.9% at 0 to 2 barriers and within 0.4% from 4 on; at 8 warps +2.5% at 2 barriers and within 2% at the others. - The 8-warp, 512-instruction step. Without barriers the eight warps run out of step and the step takes 409 to 410 ns; with one barrier per step it takes 523 to 533 ns, and further barriers add about 5 ns each. One explanation is that a barrier puts all warps in step every iteration, so their FMA streams no longer overlap; this run does not test it.
What this says for the two roadmap items
These are observations for the core's owner, not a proposal:
- The core charges
fixed_sync_nsonce per step whatever the barrier count. Here the count matters in most configurations, and on an empty step the cost grows linearly at about 8 to 11 ns per barrier. - Whether a barrier-free loop should pay the step charge has no single answer: with enough work per warp at 4 warps the barriers cost nothing, while at 8 warps with the same work the first barrier costs about four times
fixed_sync_ns.
The RTX 4070 part waits for a quiet desktop window.