Fix build against libfmt-11 https://github.com/pytorch/pytorch/commit/83eedf66b9e7f52323d9f45c5dfaa64472452595 https://github.com/pytorch/pytorch/pull/130628 From 83eedf66b9e7f52323d9f45c5dfaa64472452595 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Tue, 16 Jul 2024 06:12:08 +0000 Subject: [PATCH] Update libfmt submodule to 11.0.1 (#130628) Update libfmt to 11.0.1 reopen of https://github.com/pytorch/pytorch/pull/129962. Requires a kineto update and moves fmt::join into a separate include so added it where necessary. Pull Request resolved: https://github.com/pytorch/pytorch/pull/130628 Approved by: https://github.com/aaronenyeshi --- a/torch/csrc/distributed/c10d/socket.cpp +++ b/torch/csrc/distributed/c10d/socket.cpp @@ -32,6 +32,7 @@ C10_DIAGNOSTIC_PUSH_AND_IGNORED_IF_DEFINED("-Wdeprecated") #include C10_DIAGNOSTIC_POP() #include +#include #include #include --- a/torch/csrc/profiler/standalone/execution_trace_observer.cpp +++ b/torch/csrc/profiler/standalone/execution_trace_observer.cpp @@ -10,6 +10,7 @@ #endif // _WIN32 #include +#include #include #include #include --- a/torch/csrc/profiler/util.cpp +++ b/torch/csrc/profiler/util.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #ifdef USE_KINETO #include