KEMBAR78
[Inductor]: Support updated Triton `AttrsDescriptor` by alexbaden · Pull Request #137757 · pytorch/pytorch · GitHub
Skip to content

Conversation

@alexbaden
Copy link
Collaborator

@alexbaden alexbaden commented Oct 11, 2024

The Triton AttrsDescriptor object was refactored in triton-lang/triton#4734. These changes add support for the new AttrsDescriptor while maintaining backwards compatibility with the existing version. The main changes are different names for the initialized of the descriptor parameters, and a creation via a static method instead of the class constructor.

Depends on #137458 which removes some unused logic around the old descriptor. Those changes make this PR cleaner, but if for some reason that old logic is still used I can make adjustments.

Use of the new AttrsDescriptor depends on triton-lang/triton#4888

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

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 11, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 7589056 with merge base 3b77103 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@alexbaden
Copy link
Collaborator Author

@pytorchbot label "topic: not user facing"

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Oct 11, 2024
Comment on lines 43 to 54
Copy link
Contributor

@jansel jansel Oct 11, 2024

Choose a reason for hiding this comment

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

Let's add some asserts to ensure things don't change over time (or with different backends). For example:

assert res.property_values["tt.divisibility"] == 16
assert res.property_values["tt.equal_to"] == 1

If that changes, this code will be incorrect.

@mikaylagawarecki mikaylagawarecki added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Oct 11, 2024
@alexbaden alexbaden force-pushed the alex/support_new_attrs_descriptor branch from 78524d6 to 7589056 Compare October 14, 2024 21:09
@alexbaden
Copy link
Collaborator Author

@jansel I rebased and addressed your change request. Please let me know if this needs anything else.

@jansel
Copy link
Contributor

jansel commented Oct 15, 2024

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 15, 2024
@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

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged module: inductor open source topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants