Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[inductor][invoke_subgraph] Mark invoke_subgraph outputs as user_visible to constrain output strides #155395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from

Conversation

anijain2305
Copy link
Contributor

@anijain2305 anijain2305 commented Jun 7, 2025

…ble to constrain output strides

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Jun 7, 2025

🔗 Helpful Links

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

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

❌ 2 New Failures, 11 Cancelled Jobs, 5 Pending, 2 Unrelated Failures

As of commit 4eb267e with merge base 1b03238 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

anijain2305 added a commit that referenced this pull request Jun 7, 2025
…ble to constrain output strides

ghstack-source-id: df83517
Pull Request resolved: #155395
…s user_visible to constrain output strides"

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

[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Jun 7, 2025
…ble to constrain output strides

ghstack-source-id: 99a532e
Pull Request resolved: #155395
@anijain2305
Copy link
Contributor Author

cc @eellison @zou3519 What would be a good test for this? I tried a few options, but I am unable to write one out.

…s user_visible to constrain output strides"

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

[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Jun 8, 2025
…ble to constrain output strides

ghstack-source-id: 9a907cd
Pull Request resolved: #155395
@anijain2305 anijain2305 added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category labels Jun 9, 2025
[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Jun 9, 2025
…ble to constrain output strides

ghstack-source-id: 3c60cab
Pull Request resolved: #155395
[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Jun 9, 2025
…ble to constrain output strides

ghstack-source-id: 1378966
Pull Request resolved: #155395
[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Jun 9, 2025
…ble to constrain output strides

ghstack-source-id: 3e0ad90
Pull Request resolved: #155395
@anijain2305 anijain2305 requested review from zou3519 and eellison June 9, 2025 21:18
anijain2305 added a commit that referenced this pull request Jun 9, 2025
…ble to constrain output strides

ghstack-source-id: 3e0ad90
Pull Request resolved: #155395
[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Jun 9, 2025
…ble to constrain output strides

ghstack-source-id: d0b67f9
Pull Request resolved: #155395
@anijain2305
Copy link
Contributor Author

Added the test, but I am unable to make it fail in the absence of this PR. In the absence of this PR, we just end up having a kernel that strides the output of the invoke_subgraph to the custom op.

[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Jun 10, 2025
…ble to constrain output strides

ghstack-source-id: 2fc1b47
Pull Request resolved: #155395
Copy link
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

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

this looks reasonable but tbh I am not completely convinced it works since we can't come up with a test case that fails outside of this PR

@anijain2305
Copy link
Contributor Author

Yes, I am not convinced either. The logic makes sense. So, I will merge it.

I will try to work with some inductor folks to come up with some example.

@anijain2305
Copy link
Contributor Author

@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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: Command git -C /home/runner/work/pytorch/pytorch cherry-pick -x 978f120389b12cbb43f9e92d71231e9aeb2cc99a returned non-zero exit code 1

Auto-merging test/higher_order_ops/test_invoke_subgraph.py
Auto-merging torch/_inductor/compile_fx.py
CONFLICT (content): Merge conflict in torch/_inductor/compile_fx.py
error: could not apply 978f120389b... [inductor][invoke_subgraph] Mark invoke_subgraph outputs as user_visible to constrain output strides
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Details for Dev Infra team Raised by workflow job

[ghstack-poisoned]
anijain2305 added a commit that referenced this pull request Jun 11, 2025
…ble to constrain output strides

ghstack-source-id: fe61b2f
Pull Request resolved: #155395
@anijain2305
Copy link
Contributor Author

@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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 11 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@anijain2305
Copy link
Contributor Author

@pytorchbot merge -i

@anijain2305
Copy link
Contributor Author

@pytorchbot merge -f "broken ci"

@pytorchmergebot
Copy link
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.