Commit cb13133
committed
cute/profiler: compact decoder catches event_idx overflow via anchor divergence
When a caller's event_idx >= max_events_per_unit, the overflowing store
lands in the next unit's slot 0 -- silently clobbering its anchor. The
clobbered value looks like a packed event record, not a globaltimer
timestamp, so the decoder's reconstructed timestamps for that unit are
garbage.
CTAs in the same launch start within microseconds, so all real anchors
should agree to within ~1s. Detect divergence from the median and raise
a clear error pointing the user at the slot-allocation bug. This caught
an off-by-one in the agent_space gemm slot layout.1 parent 86d027a commit cb13133
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
334 | 350 | | |
335 | 351 | | |
336 | 352 | | |
| |||
0 commit comments