Skip to content

Commit 737798b

Browse files
c00wfacebook-github-bot
authored andcommitted
dynamo: Count number of opcodes processes (#147149)
Summary: This gives us a decent proxy for how big of a graph we functionally had to parse. Note that this is a cummulative counter. If people feel strongly, I can either write into the dynamo_timed datasets with metrics contexts, or clear the counters / write a counter per frame id as well. X-link: pytorch/pytorch#147149 Approved by: https://github.com/jansel Reviewed By: BoyuanFeng Differential Revision: D70918753 fbshipit-source-id: 7f3e68ebe2e01b6c93ac075d62069cad6c709308
1 parent 29078f6 commit 737798b

File tree

1 file changed

+1
-0
lines changed
  • userbenchmark/dynamo/dynamobench/_dynamo

1 file changed

+1
-0
lines changed

userbenchmark/dynamo/dynamobench/_dynamo/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,7 @@ class CompilationMetrics:
12301230
recompile_reason: Optional[str] = None
12311231
num_graph_breaks: Optional[int] = None
12321232
triton_kernel_compile_times_us: Optional[str] = None
1233+
ir_count: Optional[int] = None
12331234

12341235
@classmethod
12351236
def create(cls, metrics: dict[str, Any]):

0 commit comments

Comments
 (0)