🔥Act VIII · Deck Command
0 XP
Chapter 1 / 3

Deck-wide tally

New here? Read the 60-sec briefing ↗

A whole deck, many fireteams in one block, needs a single tally. block_sum gathers every lane across every warp on the deck into one number, the warp-reduce scaled up to the block.

block_sum reduces a value across all threads in a block (combining per-warp partials behind the scenes). It's the building block for block-wide statistics, totals, means, histograms.

YOUR TASK
  1. 1value is this thread's reading.
  2. 2Reduce it across the whole deck (block) into deck_total.
💡 Reduce across the block: deck_total = block_sum(value).
deck/block_sum.mojo
PUZZLE 27 · BLOCK SUM
Clear all 3 chapters to forge🧱 Deck Command Core Shard