Chapter 1 / 3
โฆ 0 XP
Chapter 1 / 3
One fireteam, one voice
New here? Read the 60-sec briefing โThirty-two bots move as one fireteam, a warp. To tally the squad's readings you don't need shared memory or a barrier: the fireteam sums itself in a single hardware step, every lane handing its value inward at once.
A warp is 32 threads (lanes) executing in lockstep. warp_sum reduces a value across all 32 lanes in one instruction, no shared memory, no barrier. Warp-synchronous reductions are the fastest way to combine within a block.
YOUR TASK
- 1value is this lane's reading.
- 2Reduce it across all 32 lanes of the fireteam into total.
๐ก Reduce across the warp in one step: total = warp_sum(value).
fireteam/warp_sum.mojo
PUZZLE 24 ยท WARP SUMClear all 3 chapters to forge๐ฐ๏ธ Fireteam Core Shard