8000 Log aot and idx waitcounters. (#152444) · pytorch/pytorch@ea9ea02 · GitHub
[go: up one dir, main page]

Skip to content

Commit ea9ea02

Browse files
jovianjaisonpytorchmergebot
authored andcommitted
Log aot and idx waitcounters. (#152444)
Summary: Added for create_aot_dispatcher_function and compile_fx_inner. Note: Log wait counters flag is already set for: 1. async_compile.precompile 2. remote_fx_graph_cache_get 3. remote_fx_graph_cache_put Test Plan: contbuild Differential Revision: D73866124 Pull Request resolved: #152444 Approved by: https://github.com/ppanchalia, https://github.com/masnesral
1 parent 35475a3 commit ea9ea02

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

torch/_dynamo/output_graph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,8 @@ def call_user_compiler(self, gm: fx.GraphModule) -> CompiledFn:
15471547
"OutputGraph.call_user_compiler",
15481548
phase_name="backend_compile",
15491549
log_pt2_compile_event=True,
1550+
log_waitcounter=True,
1551+
waitcounter_name_override="compile_aot_autograd",
15501552
dynamo_compile_column_us="aot_autograd_cumulative_compile_time_us",
15511553
):
15521554
return self._call_user_compiler(gm)

torch/_inductor/async_compile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ def get_result() -> CachingAutotuner:
387387
log_pt2_compile_event=True,
388388
dynamo_compile_column_us="triton_compile_time_us",
389389
log_waitcounter=True,
390+
waitcounter_name_override="compile_async_triton",
390391
):
391392
start_ns = time_ns()
392393
_set_triton_ptxas_path()
@@ -475,6 +476,7 @@ def wait(self, scope: dict[str, Any]) -> None:
475476
log_pt2_compile_event=True,
476477
dynamo_compile_column_us="triton_compile_time_us",
477478
log_waitcounter=True,
479+
waitcounter_name_override="compile_async_triton",
478480
):
479481
self._wait_futures(scope)
480482

torch/_inductor/compile_fx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ def compile_fx_inner(
714714
"compile_fx_inner",
715715
phase_name="inductor_compile",
716716
log_pt2_compile_event=True,
717+
log_waitcounter=True,
718+
waitcounter_name_override="compile_inductor",
717719
dynamo_compile_column_us="inductor_cumulative_compile_time_us",
718720
)
719721
)

0 commit comments

Comments
 (0)
0