Chapter 1 / 3
โฆ 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
- 1The index only uses thread_idx.x, that's the bug.
- 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 ยท DEBUGClear all 3 chapters to forge๐ ๏ธ Diagnostics Core Shard