๐Ÿ”ฅโ€นAct II ยท Diagnostics Bay
โœฆ 0 XP
Chapter 1 / 3

Trace the fault

New here? Read the 60-sec briefing โ†—

A subsystem returns garbage past the first 256 readings. The diagnostic points at the index, it forgot which block each core belongs to, so only the first squad ever runs.

First debugging instinct: check the index math. A global thread index must combine block and thread, block_dim.x * block_idx.x + thread_idx.x.

YOUR TASK
  1. 1The index only uses thread_idx.x, that's the bug.
  2. 2Fix it to the full global index that includes the block offset.
๐Ÿ’ก Global index = block_dim.x * block_idx.x + thread_idx.x, not thread_idx.x alone.
core_09_trace.mojo
PUZZLE 9 ยท DEBUG
Clear all 3 chapters to forge๐Ÿ› ๏ธ Diagnostics Core Shard