Skip to content

Conversation

YUNQIUGUO
Copy link
Contributor

@YUNQIUGUO YUNQIUGUO commented Mar 3, 2025

Summary:
As title. it would be beneficial for judging e2e perf improvement

Easy first step to dump mm info at lowering stage.

e.g.

fbsource/fbcode/caffe2/torch/_inductor/kernel/mm.py:525] [0/0] Tuned aten.addmm: m=16, n=6, k=16, layout=FixedLayout('cuda:0', torch.float32, size=[16, 6], stride=[6, 1])

Next step:

Dump overview info at post_grad_graph stage such as
overall count of aten.mm in the graph & visualize to a table structure.

Test Plan: by looking very hard in aot inductor bmm and mm UTs.

Differential Revision: D70507880

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov

Copy link

pytorch-bot bot commented Mar 3, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/148363

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit d1dd36a with merge base e4c558b (image):

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@YUNQIUGUO YUNQIUGUO force-pushed the export-D70507880 branch 2 times, most recently from e4c47be to 46156dc Compare March 3, 2025 21:18
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70507880

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70507880

@YUNQIUGUO YUNQIUGUO added the topic: not user facing topic category label Mar 3, 2025
@ColinPeppler ColinPeppler requested a review from eellison March 3, 2025 21:24
@ColinPeppler
Copy link
Contributor

I think log.info is the appropriate log level. LGTM!

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70507880

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70507880

YUNQIUGUO added a commit to YUNQIUGUO/pytorch that referenced this pull request Mar 3, 2025
Summary:
Pull Request resolved: pytorch#148363

As title. it would be beneficial for judging e2e perf improvement

Easy first step to dump mm info at lowering stage.

e.g.

```
fbsource/fbcode/caffe2/torch/_inductor/kernel/mm.py:525] [0/0] Tuned aten.addmm: m=16, n=6, k=16, layout=FixedLayout('cuda:0', torch.float32, size=[16, 6], stride=[6, 1])
```

Next step:

Dump overview info at `post_grad_graph` stage such as
overall count of `aten.mm` in the graph & visualize to a table structure.

Test Plan: by looking very hard in aot inductor bmm and mm UTs.

Differential Revision: D70507880
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70507880

@YUNQIUGUO YUNQIUGUO force-pushed the export-D70507880 branch 2 times, most recently from de8ab58 to 5852540 Compare March 4, 2025 06:41
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70507880

YUNQIUGUO added a commit to YUNQIUGUO/pytorch that referenced this pull request Mar 4, 2025
Summary:

As title. it would be beneficial for judging e2e perf improvement

Easy first step to dump mm info at lowering stage.

e.g.

```
fbcode/caffe2/torch/_inductor/kernel/mm.py:525] [0/0] Tuned aten.addmm: m=16, n=6, k=16, mat1_dtype=torch.float32, mat2_dtype=torch.float32, output_layout=FixedLayout('cpu', torch.float32, size=[16, 6], stride=[6, 1])
```


Next step:

Dump overview info at `post_grad_graph` stage such as
overall count of `aten.mm` in the graph & visualize to a table structure.

Test Plan: by looking very hard in aot inductor bmm and mm UTs.

Reviewed By: ColinPeppler

Differential Revision: D70507880
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70507880

@YUNQIUGUO YUNQIUGUO requested a review from henrylhtsang March 4, 2025 20:40
Summary:

As title. it would be beneficial for judging e2e perf improvement

Easy first step to dump mm info at lowering stage.

e.g.

```
fbcode/caffe2/torch/_inductor/kernel/mm.py:525] [0/0] Tuned aten.addmm: m=16, n=6, k=16, mat1_dtype=torch.float32, mat2_dtype=torch.float32, output_layout=FixedLayout('cpu', torch.float32, size=[16, 6], stride=[6, 1])
```


Next step:

Dump overview info at `post_grad_graph` stage such as
overall count of `aten.mm` in the graph & visualize to a table structure.

Test Plan: by looking very hard in aot inductor bmm and mm UTs.

Reviewed By: ColinPeppler

Differential Revision: D70507880
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70507880

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 4, 2025
@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants