kempnerpulse.reader.replay

Layer 1 (Read) — replay backend.

Replays a saved dcgmi dmon capture as a deterministic RawRecord stream, so the higher layers can be exercised in tests and CI without GPU hardware. Ticks are split on a repeated GPU <id> row (the same boundary the live reader uses) and each is stamped with a synthetic, monotonically increasing timestamp so replays are reproducible.

Functions

split_dmon_ticks(text)

Split a multi-tick dcgmi dmon capture into per-tick text blocks.

Classes

ReplayBackend

Replays a captured dcgmi dmon file as a RawRecord stream.

kempnerpulse.reader.replay.split_dmon_ticks(text)[source]

Split a multi-tick dcgmi dmon capture into per-tick text blocks.

Parameters:

text (str)

Return type:

List[str]

class kempnerpulse.reader.replay.ReplayBackend[source]

Bases: object

Replays a captured dcgmi dmon file as a RawRecord stream.

__init__()[source]
Return type:

None

open(config)[source]
Parameters:

config (ReaderConfig)

Return type:

None

stream()[source]
Return type:

Iterator[RawRecord]

close()[source]
Return type:

None

property caps: BackendCaps