KEMBAR78
[Inductor] Allow matmul to have flexiable layout when we are not autotuning by oulgen · Pull Request #110726 · pytorch/pytorch · GitHub
Skip to content

Conversation

@oulgen
Copy link
Contributor

@oulgen oulgen commented Oct 6, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 6, 2023

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 918e9d0 with merge base e8f1f4e (image):

UNSTABLE - The following jobs failed but were likely due to flakiness present on trunk and has been marked as unstable:

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

@oulgen oulgen requested review from Chillee and jansel October 6, 2023 17:39
@oulgen oulgen added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 6, 2023
"Force channels last inputs for %d conv for the current graph with id %d",
self.num_channels_last_conv,
self.graph_id,
self.graph_id if self.graph_id is not None else -1,
Copy link
Contributor Author

@oulgen oulgen Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None was making %d crash under TORCH_LOGS="+inductor"

@oulgen
Copy link
Contributor Author

oulgen commented Oct 6, 2023

…re not autotuning"

Fixes #102804

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler

[ghstack-poisoned]
oulgen added a commit that referenced this pull request Oct 6, 2023
Copy link
Collaborator

@Chillee Chillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! We can sanity-check the perf run to make sure there are no regressions, and then we can land.


if (
len(choices) == 1
and use_aten_gemm_kernels()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's probably a bit cleaner to just remove this condition?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean remove the use_aten_gemm_kernels? We would also remove the restriction above then, right? If it safe to do so, i can remove both

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is that if you only have one kernel choice, then the layout choice won't have any affect on which kernel gets chosen. So it's less likely to matter as much.

@oulgen
Copy link
Contributor Author

oulgen commented Oct 7, 2023

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: This PR needs a release notes: label
If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Details for Dev Infra team Raised by workflow job

@oulgen
Copy link
Contributor Author

oulgen commented Oct 7, 2023

@pytorchbot merge

@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

@facebook-github-bot facebook-github-bot deleted the gh/oulgen/6/head branch October 10, 2023 14:25
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.

4 participants