Skip to content

[submodule] Bump libfmt to 12.0.0#163441

Closed
cyyever wants to merge 1 commit intopytorch:mainfrom
cyyever:libfmt12
Closed

[submodule] Bump libfmt to 12.0.0#163441
cyyever wants to merge 1 commit intopytorch:mainfrom
cyyever:libfmt12

Conversation

@cyyever
Copy link
Collaborator

@cyyever cyyever commented Sep 21, 2025

libfmt 12.0 brings new optimisations and fixes some compilation issues for clang 21 (fmtlib/fmt#4477).
For a detailed release log, see https://github.com/fmtlib/fmt/releases/tag/12.0.0

Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 21, 2025

🔗 Helpful Links

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

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

✅ No Failures

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

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

@Skylion007 Skylion007 added release notes: cpp release notes category and removed topic: not user facing topic category labels Sep 21, 2025
@Skylion007
Copy link
Collaborator

@pytorchbot merge

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

@cyyever cyyever deleted the libfmt12 branch September 22, 2025 01:24
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
libfmt 12.0 brings new optimisations and fixes some compilation issues for clang 21 (fmtlib/fmt#4477).
For a detailed release log, see https://github.com/fmtlib/fmt/releases/tag/12.0.0
Pull Request resolved: pytorch#163441
Approved by: https://github.com/Skylion007
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
libfmt 12.0 brings new optimisations and fixes some compilation issues for clang 21 (fmtlib/fmt#4477).
For a detailed release log, see https://github.com/fmtlib/fmt/releases/tag/12.0.0
Pull Request resolved: pytorch#163441
Approved by: https://github.com/Skylion007
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
libfmt 12.0 brings new optimisations and fixes some compilation issues for clang 21 (fmtlib/fmt#4477).
For a detailed release log, see https://github.com/fmtlib/fmt/releases/tag/12.0.0
Pull Request resolved: pytorch#163441
Approved by: https://github.com/Skylion007
pytorchmergebot pushed a commit that referenced this pull request Sep 30, 2025
`fmtlib` version was updated to 12.0.0 in #163441.

In this new version, due to fmtlib/fmt#4536, PyTorch started not installing `fmtlib` headers anymore. Because of that, PyTorch/XLA build CI started to fail pytorch/xla#9653. While we did fix it internally pytorch/xla#9650, I believe that PyTorch should continue installing the `fmtlib` headers, since it is a dependency of its C API [`python_arg_parser.h`][1].

PyTorch/XLA CI was moved to `unstable.yml` in #159272, and later removed in #163564. This PyTorch/XLA build failure went under the radar, since the `fmtlib` update only landed on September 22.

[1]: https://github.com/pytorch/pytorch/blob/84d673ef577d42d6ec20c6c9f09863583c3111f5/torch/csrc/utils/python_arg_parser.h#L42
Pull Request resolved: #164139
Approved by: https://github.com/Skylion007, https://github.com/malfet
ysiraichi added a commit to pytorch/xla that referenced this pull request Nov 6, 2025
This PR removes the temporary fmtlib dependency introduced in #9650 (see
issue #9653).

As explained [in this comment][1], the dependency was only added to work
around a build issue that should have been fixed upstream in PyTorch.
Before the `fmtlib` version bump to 12 in PyTorch
(pytorch/pytorch#163441), `fmtlib` headers were exported by default.
After the bump, they stopped being exported, which caused the issue.

That behavior has since been fixed in PyTorch (pytorch/pytorch#164139),
so we can safely remove the explicit fmtlib dependency.

[1]:
#9650 (review)
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 open source release notes: cpp release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants