Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/aiu_trace_analyzer/pipeline/iteration_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import aiu_trace_analyzer.logger as aiulog
from aiu_trace_analyzer.types import TraceEvent
from aiu_trace_analyzer.pipeline import AbstractContext, AbstractHashQueueContext
from aiu_trace_analyzer.pipeline.tools import PipelineContextTool


class IterationStatus(object):
Expand Down Expand Up @@ -149,7 +150,7 @@ def drain(self) -> list[TraceEvent]:
def collect_iteration_stats(event: TraceEvent, context: AbstractContext) -> list[TraceEvent]:
assert isinstance(context, IterationDectectContext)

if event["ph"] in "X" and "args" in event and "TS1" in event["args"] and "Cmpt Exec" in event["name"]:
if event["ph"] == "X" and PipelineContextTool.is_acc_kernel(event):
Comment thread
ppnaik1890 marked this conversation as resolved.
context.detect_iteration(event)

return [event]