Skip to content

[MTIA-T][CFF] Pass backend parameter into GPU vertical pass file and pattern matcher#160404

Closed
hpnhxxwn wants to merge 1 commit intopytorch:mainfrom
hpnhxxwn:export-D80069072
Closed

[MTIA-T][CFF] Pass backend parameter into GPU vertical pass file and pattern matcher#160404
hpnhxxwn wants to merge 1 commit intopytorch:mainfrom
hpnhxxwn:export-D80069072

Conversation

@hpnhxxwn
Copy link
Contributor

@hpnhxxwn hpnhxxwn commented Aug 12, 2025

Summary:
As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Differential Revision: D80069072

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

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 12, 2025

This appears to be a diff that was exported from phabricator, but the PR author does not have sufficient permissions to run CI. @hpnhxxwn, please do step 2 of internal wiki to get write access so you do not need to get CI approvals in the future. If you think this is a mistake, please contact the Pytorch Dev Infra team.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 12, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: hpnhxxwn / name: Isabella Ni (2681dc8)

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 12, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 2681dc8 with merge base 87e6c40 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot
Copy link
Contributor

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

@hpnhxxwn
Copy link
Contributor Author

/easycla

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 12, 2025
@BoyuanFeng
Copy link
Contributor

lgtm! please fix lint by "lintrunner -a"

hpnhxxwn added a commit to hpnhxxwn/pytorch that referenced this pull request Aug 12, 2025
…pattern matcher (pytorch#160404)

Summary:

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: BoyuanFeng

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

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

hpnhxxwn added a commit to hpnhxxwn/pytorch that referenced this pull request Aug 12, 2025
…pattern matcher (pytorch#160404)

Summary:
Pull Request resolved: pytorch#160404

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: BoyuanFeng

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

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

hpnhxxwn added a commit to hpnhxxwn/pytorch that referenced this pull request Aug 12, 2025
…pattern matcher (pytorch#160404)

Summary:
Pull Request resolved: pytorch#160404

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: BoyuanFeng

Differential Revision: D80069072
hpnhxxwn added a commit to hpnhxxwn/pytorch that referenced this pull request Aug 12, 2025
…pattern matcher (pytorch#160404)

Summary:

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: BoyuanFeng

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

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

hpnhxxwn added a commit to hpnhxxwn/pytorch that referenced this pull request Aug 12, 2025
…pattern matcher (pytorch#160404)

Summary:
Pull Request resolved: pytorch#160404

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: BoyuanFeng

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

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

hpnhxxwn added a commit to hpnhxxwn/pytorch that referenced this pull request Aug 12, 2025
…pattern matcher (pytorch#160404)

Summary:
Pull Request resolved: pytorch#160404

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: BoyuanFeng

Differential Revision: D80069072
@hpnhxxwn hpnhxxwn force-pushed the export-D80069072 branch 2 times, most recently from 03fac1b to 1b0e75b Compare August 12, 2025 23:19
hpnhxxwn added a commit to hpnhxxwn/pytorch that referenced this pull request Aug 12, 2025
…pattern matcher (pytorch#160404)

Summary:
Pull Request resolved: pytorch#160404

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: optimisea, BoyuanFeng

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

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

hpnhxxwn added a commit to hpnhxxwn/pytorch that referenced this pull request Aug 12, 2025
…pattern matcher (pytorch#160404)

Summary:
Pull Request resolved: pytorch#160404

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: optimisea, BoyuanFeng

Differential Revision: D80069072
@BoyuanFeng
Copy link
Contributor

@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

hpnhxxwn added a commit to hpnhxxwn/pytorch that referenced this pull request Aug 13, 2025
…pattern matcher (pytorch#160404)

Summary:

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: optimisea, BoyuanFeng

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

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

hpnhxxwn added a commit to hpnhxxwn/pytorch that referenced this pull request Aug 13, 2025
…pattern matcher (pytorch#160404)

Summary:
Pull Request resolved: pytorch#160404

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: optimisea, BoyuanFeng

Differential Revision: D80069072
…pattern matcher (pytorch#160404)

Summary:
Pull Request resolved: pytorch#160404

As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Reviewed By: optimisea, BoyuanFeng

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

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

@hpnhxxwn
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Aug 13, 2025
@BoyuanFeng
Copy link
Contributor

@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

chuanhaozhuge pushed a commit that referenced this pull request Aug 14, 2025
…pattern matcher (#160404)

Summary:
As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Differential Revision: D80069072

Pull Request resolved: #160404
Approved by: https://github.com/BoyuanFeng
chuanhaozhuge pushed a commit that referenced this pull request Aug 18, 2025
…pattern matcher (#160404)

Summary:
As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Differential Revision: D80069072

Pull Request resolved: #160404
Approved by: https://github.com/BoyuanFeng
can-gaa-hou pushed a commit to can-gaa-hou/pytorch that referenced this pull request Aug 22, 2025
…pattern matcher (pytorch#160404)

Summary:
As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Differential Revision: D80069072

Pull Request resolved: pytorch#160404
Approved by: https://github.com/BoyuanFeng
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
…pattern matcher (pytorch#160404)

Summary:
As titled
Please see https://fb.workplace.com/groups/1075192433118967/posts/1735215827116621/?comment_id=1735220747116129&reply_comment_id=1735242997113904

Basically, for MTIA, we want mtia_afg to show up in the counters and backend, instead of Inductor. MTIA is not using inductor yet. Using env var TORCHINDUCTOR_PATTERN_MATCH_BACKEND to pass in the actual backend.

The env var default value is "inductor", so nothing should break for GPU.

Test Plan:
Default is always "inductor", so existing test should not break.

CI tests

Rollback Plan:

Differential Revision: D80069072

Pull Request resolved: pytorch#160404
Approved by: https://github.com/BoyuanFeng
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