BAR.SYNC.DEFER_BLOCKING b, n: BAR.SYNC 0x0's word with the barrier in
bits 54..57 and the thread count in bits 42..53 (read off nvdisasm -hex of
ptxas sm_86 code on the RTX 3070 pod, 2026-10-09: bar.sync 1, 128 is
0x0042000000007b1d, bar.sync 15, 96 0x03c1800000007b1d; count 0 is the
whole CTA, bar.sync 0's word). RuntimeMachine's native encoder is its twin.
1546def sm86EncodeBarrierSynchronizeCount =
1547 (lambda unrestricted guard : SM86InstructionGuard .
1548 unrestricted barrier : Byte .
1549 unrestricted threads : Nat .
1550 unrestricted control : SM86Control .
1551 then (sm86EncodeInstructionFields sm86OpcodeBarrierSynchronize guard control)
1552 (sm86InstructionPrependField 42 12 threads)
1553 (sm86InstructionPrependField sm86InstructionNaturalFiftyFour 4 (byte-to-nat barrier))
1554 (sm86InstructionPrependField sm86InstructionNaturalEighty sm86InstructionNaturalOne 1)
1555 sm86InstructionFieldsEmpty)The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.