Skip to content

Update cpuinfo submodule - #180372

Closed
malfet wants to merge 6 commits into
gh/malfet/837/basefrom
gh/malfet/837/head
Closed

malfet wants to merge 6 commits into
gh/malfet/837/basefrom
gh/malfet/837/head

Conversation

@malfet

@malfet malfet commented Apr 14, 2026 •

Copy link
Copy Markdown
Collaborator

Stack from ghstack (oldest at bottom):

To include pytorch/cpuinfo#344

Updated cpuinfo submodule includes pytorch/cpuinfo#345 which changed its BUILD.bazel to load cc_library from @rules_cc//cc:cc_library.bzl (Starlark) and added a @rules_license dependency. Both require a newer rules_cc (0.2.12+) and Bazel 7+. PyTorch's pinned rules_cc predates the Starlark migration and doesn't ship cc/cc_library.bzl.

Rather than vendoring a custom cpuinfo.BUILD and changing c10/core/build.bzl to use @org_pytorch_cpuinfo//:cpuinfo (which breaks the internal build system), this PR shims one missing dependency and installs anotherso the submodule's own BUILD.bazel works as-is.

Authored with Claude

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Apr 14, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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:

⏳ No Failures, 2 Pending

As of commit 4fea333 with merge base d7d0482 (image):
💚 Looks good so far! There are no failures yet. 💚

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

malfet added a commit that referenced this pull request Apr 14, 2026
To include pytorch/cpuinfo#344


ghstack-source-id: ec0f1d1
Pull-Request: #180372
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Apr 14, 2026
@malfet
malfet requested a review from Skylion007 April 14, 2026 20:07
[ghstack-poisoned]
malfet added a commit that referenced this pull request Apr 15, 2026
To include pytorch/cpuinfo#344

The new cpuinfo BUILD.bazel uses `@rules_cc//cc:cc_library.bzl` and
`@rules_license` which require rules_cc 0.2.12+ and Bazel 7+. Since
PyTorch uses Bazel 6.5, provide a custom cpuinfo.BUILD with old-style
loads and ignore the submodule's BUILD.bazel via .bazelignore.

ghstack-source-id: 91dadf5
Pull-Request: #180372
@malfet

malfet commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge -f "All is green"

@pytorchmergebot

Copy link
Copy Markdown
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

@malfet

malfet commented Apr 16, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot revert -m "I should not have modified .bzl file" -c ghfirst

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request Apr 16, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@malfet your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Apr 16, 2026
[ghstack-poisoned]
malfet added a commit that referenced this pull request Apr 16, 2026
To include pytorch/cpuinfo#344

The new cpuinfo BUILD.bazel uses `@rules_cc//cc:cc_library.bzl` and
`@rules_license` which require rules_cc 0.2.12+ and Bazel 7+. Since
PyTorch uses Bazel 6.5, provide a custom cpuinfo.BUILD with old-style
loads and ignore the submodule's BUILD.bazel via .bazelignore.

ghstack-source-id: 925abd0
Pull-Request: #180372
malfet added a commit that referenced this pull request Apr 16, 2026
To include pytorch/cpuinfo#344

The new cpuinfo BUILD.bazel uses `@rules_cc//cc:cc_library.bzl` and
`@rules_license` which require rules_cc 0.2.12+ and Bazel 7+. Since
PyTorch uses Bazel 6.5, provide a custom cpuinfo.BUILD with old-style
loads and ignore the submodule's BUILD.bazel via .bazelignore.

ghstack-source-id: 925abd0
Pull-Request: #180372
malfet added a commit that referenced this pull request Apr 16, 2026
To include pytorch/cpuinfo#344

The new cpuinfo BUILD.bazel uses `@rules_cc//cc:cc_library.bzl` and
`@rules_license` which require rules_cc 0.2.12+ and Bazel 7+. Since
PyTorch uses Bazel 6.5, provide a custom cpuinfo.BUILD with old-style
loads and ignore the submodule's BUILD.bazel via .bazelignore.

ghstack-source-id: 925abd0
Pull-Request: #180372
malfet added a commit that referenced this pull request Apr 16, 2026
To include pytorch/cpuinfo#344

The new cpuinfo BUILD.bazel uses `@rules_cc//cc:cc_library.bzl` and
`@rules_license` which require rules_cc 0.2.12+ and Bazel 7+. Since
PyTorch uses Bazel 6.5, provide a custom cpuinfo.BUILD with old-style
loads and ignore the submodule's BUILD.bazel via .bazelignore.

ghstack-source-id: 925abd0
Pull-Request: #180372
[ghstack-poisoned]
malfet added a commit that referenced this pull request Apr 16, 2026
To include pytorch/cpuinfo#344

The new cpuinfo BUILD.bazel uses `@rules_cc//cc:cc_library.bzl` and
`@rules_license` which require rules_cc 0.2.12+ and Bazel 7+. Since
PyTorch uses Bazel 6.5, provide a custom cpuinfo.BUILD with old-style
loads and ignore the submodule's BUILD.bazel via .bazelignore.

ghstack-source-id: 8e52841
Pull-Request: #180372
[ghstack-poisoned]
malfet added a commit that referenced this pull request Apr 16, 2026
To include pytorch/cpuinfo#344

The new cpuinfo BUILD.bazel uses `@rules_cc//cc:cc_library.bzl` and
`@rules_license` which require rules_cc 0.2.12+ and Bazel 7+. Since
PyTorch uses Bazel 6.5, provide a custom cpuinfo.BUILD with old-style
loads and ignore the submodule's BUILD.bazel via .bazelignore.

ghstack-source-id: 3912fb5
Pull-Request: #180372
[ghstack-poisoned]
malfet added a commit that referenced this pull request Apr 16, 2026
To include pytorch/cpuinfo#344

The new cpuinfo BUILD.bazel uses `@rules_cc//cc:cc_library.bzl` and
`@rules_license` which require rules_cc 0.2.12+ and Bazel 7+. Since
PyTorch uses Bazel 6.5, provide a custom cpuinfo.BUILD with old-style
loads and ignore the submodule's BUILD.bazel via .bazelignore.

ghstack-source-id: 73f5ad5
Pull-Request: #180372
@malfet

malfet commented Apr 16, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge -f "Should be good this time around"

@pytorchmergebot

Copy link
Copy Markdown
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

@github-actions
github-actions Bot deleted the gh/malfet/837/head branch May 17, 2026 02:27
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
To include pytorch/cpuinfo#344

Updated cpuinfo submodule includes pytorch/cpuinfo#345 which changed its `BUILD.bazel` to load `cc_library` from `@rules_cc//cc:cc_library.bzl` (Starlark) and added a `@rules_license` dependency. Both require a newer rules_cc (0.2.12+) and Bazel 7+. PyTorch's pinned rules_cc predates the Starlark migration and doesn't ship `cc/cc_library.bzl`.

Rather than vendoring a custom `cpuinfo.BUILD` and changing `c10/core/build.bzl` to use `@org_pytorch_cpuinfo//:cpuinfo` (which breaks the internal build system), this PR shims one missing dependency and installs anotherso the submodule's own `BUILD.bazel` works as-is.

Authored with Claude
Pull Request resolved: pytorch#180372
Approved by: https://github.com/Skylion007
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
To include pytorch/cpuinfo#344

But because of pytorch/cpuinfo#345 one has to vendor custom `cpuinfo.BUILD` which is compatible with ancient PyTorch bezel build system (perhaps it's time to remove it)
Pull Request resolved: pytorch#180372
Approved by: https://github.com/Skylion007
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
To include pytorch/cpuinfo#344

Updated cpuinfo submodule includes pytorch/cpuinfo#345 which changed its `BUILD.bazel` to load `cc_library` from `@rules_cc//cc:cc_library.bzl` (Starlark) and added a `@rules_license` dependency. Both require a newer rules_cc (0.2.12+) and Bazel 7+. PyTorch's pinned rules_cc predates the Starlark migration and doesn't ship `cc/cc_library.bzl`.

Rather than vendoring a custom `cpuinfo.BUILD` and changing `c10/core/build.bzl` to use `@org_pytorch_cpuinfo//:cpuinfo` (which breaks the internal build system), this PR shims one missing dependency and installs anotherso the submodule's own `BUILD.bazel` works as-is.

Authored with Claude
Pull Request resolved: pytorch#180372
Approved by: https://github.com/Skylion007
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
To include pytorch/cpuinfo#344

But because of pytorch/cpuinfo#345 one has to vendor custom `cpuinfo.BUILD` which is compatible with ancient PyTorch bezel build system (perhaps it's time to remove it)
Pull Request resolved: pytorch#180372
Approved by: https://github.com/Skylion007
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
To include pytorch/cpuinfo#344

Updated cpuinfo submodule includes pytorch/cpuinfo#345 which changed its `BUILD.bazel` to load `cc_library` from `@rules_cc//cc:cc_library.bzl` (Starlark) and added a `@rules_license` dependency. Both require a newer rules_cc (0.2.12+) and Bazel 7+. PyTorch's pinned rules_cc predates the Starlark migration and doesn't ship `cc/cc_library.bzl`.

Rather than vendoring a custom `cpuinfo.BUILD` and changing `c10/core/build.bzl` to use `@org_pytorch_cpuinfo//:cpuinfo` (which breaks the internal build system), this PR shims one missing dependency and installs anotherso the submodule's own `BUILD.bazel` works as-is.

Authored with Claude
Pull Request resolved: pytorch#180372
Approved by: https://github.com/Skylion007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR Merged Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants