vllm.models.kimi_k3.amd.specialized_decode.mono.common.debug
¶
A timeline build's per-CTA phase stamps (debug only; ATOM_MONO_TIMELINE,
saved by atom.mono.runtime.timeline): the s_memrealtime (100 MHz) at which
the CTA passes point k, kept in LDS until the kernel ends -- a global store per
stamp would sit on every later s_waitcnt vmcnt(0).
on is the build's compile-time switch: off, every call traces to nothing.
Functions:
-
given_up_waits–Each CTA's first wait that gave up, the earliest first, from a rank's
-
region_id–A mailbox region's id in a wait record: its name's CRC-32 (31 bits), the
-
region_ids–Name ->
region_id: aMailbox's table. -
stamp_begin–Zero the LDS record, then point 0.
-
stamp_flush–The CTA's record ->
tl[CTA][points]int64.
given_up_waits(health, names)
¶
Each CTA's first wait that gave up, the earliest first, from a rank's
health words; names the regions a record may name.
Source code in vllm/models/kimi_k3/amd/specialized_decode/mono/common/debug.py
region_id(name)
¶
A mailbox region's id in a wait record: its name's CRC-32 (31 bits), the same in every kernel and table that names it.
region_ids(names)
¶
stamp_begin(on, tls, tid, points)
¶
Zero the LDS record, then point 0.
Source code in vllm/models/kimi_k3/amd/specialized_decode/mono/common/debug.py
stamp_flush(on, tls, tl, tid, bid, points)
¶
The CTA's record -> tl [CTA][points] int64.