-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add compile time Kineto trace (#148)
Summary: Generates Kineto trace focusing on compile time so that we can peek into compile time analysis. Fixes #117 Pull Request resolved: #148 Test Plan: ``` $ python run.py --op softmax --num-inputs 1 --input-id 0 --metrics compile_trace --only triton_softmax ``` <img width="632" alt="image" src="https://github.com/user-attachments/assets/bfacd02d-2033-435a-9836-08b6d8bc03ae" /> Internal link only: https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree%2Ftritonbench%2Fcompile_time.json&bucket=tc_bench_ci With autotuning: <img width="1111" alt="image" src="https://github.com/user-attachments/assets/47982b37-5597-41c2-95b1-096315e5f5ea" /> Internal test: ``` x_val triton_softmax-compile_trace ------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2176 https://www.internalfb.com/intern/perfdoctor/trace_view?filepath=tree/traces/tritonbench/tritonbench_triton_softmax_20250131_163154_6535183793.json&bucket=pyper_traces ``` Reviewed By: adamomainz Differential Revision: D68898238 Pulled By: xuzhao9 fbshipit-source-id: f2b79e21b6fd94ec017412b724625f45ec8a349d
- Loading branch information
1 parent
9052263
commit 0f4c245
Showing
3 changed files
with
105 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
from .trace import do_compile_time_in_task, fbcode_do_compile_time_in_task # noqa F401 | ||
from .trace import ( # noqa F401 | ||
do_compile_kineto_trace_in_task, | ||
do_compile_time_in_task, | ||
fbcode_do_compile_time_in_task, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters