Skip to content

Cherry-pick #181161 and its forward fix #181434 - #181608

Merged
malfet merged 2 commits into
release/2.12from
cherry-pick-tags-2-12
Apr 28, 2026
Merged

malfet merged 2 commits into
release/2.12from
cherry-pick-tags-2-12

Conversation

@janeyx99

Copy link
Copy Markdown
Contributor

The PRs already landed in main:
#181161
#181434

…ary.def override to allow tags (#181161)

Summary:
Reland of D100546620 which was reverted by D101431332 due to breaking libhammer.so.

Custom ops benefit from using tags. This PR moves at::Tag to torch::headeronly::Tag and adds a shim for stable Library.def to be able to take in tags.

Note: The two BUILD.bazel changes from the original diff were already present on master (the revert did not touch them), so this reland omits those files.

Old PR was: #180190

Differential Revision: D102031366

Pull Request resolved: #181161
Approved by: https://github.com/seemethere, https://github.com/atalman
…l-dir (#181434)

This is a "forward fix" of #181161 and will need to be cherrypicked to make sure xpu builds still work. To describe the issue:
- torch-xpu-ops has its own version of tags.yaml
- the natural default of headeronly-install-dir had the XPU build overriding the enum_tags.h, and since their tag.yaml weren't the same as ours, we get build issues
- I tried fixing this before by just aligning the torch-xpu-ops version of tags.yaml but we're still adding more tags so that problem will come back
- I finally decided the fix is just to make the the default doesn't have the install locations colliding even if it makes the default for torchgen a tad more complicated.

Test plan:
make sure the XPU build on the PR stacked on top of this one passes.

Pull Request resolved: #181434
Approved by: https://github.com/EikanWang, https://github.com/wdvr
@pytorch-bot

pytorch-bot Bot commented Apr 27, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 New Failure, 1 Unrelated Failure

As of commit abde935 with merge base 58e3fb0 (image):

NEW FAILURE - The following job has failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

@pytorch-bot

pytorch-bot Bot commented Apr 27, 2026

Copy link
Copy Markdown

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.

@janeyx99
janeyx99 requested review from albanD, atalman and malfet April 27, 2026 16:02
@janeyx99 janeyx99 added release notes: cpp release notes category suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter) ciflow/trunk Trigger trunk jobs on your pull request labels Apr 27, 2026
@malfet
malfet merged commit e7bbf37 into release/2.12 Apr 28, 2026
329 of 332 checks passed
@github-actions
github-actions Bot deleted the cherry-pick-tags-2-12 branch May 29, 2026 02:29
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 release notes: cpp release notes category suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants