From ba2cf11d1bf1dd5086c8e793198a697d4179cca7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 16 Jul 2024 08:00:22 +0800 Subject: [PATCH] include fmt/ranges.h for using fmt::join() fmt::join() was moved into fmt/ranges.h in fmt 11, so include this header for using it. Signed-off-by: Kefu Chai --- torch/csrc/distributed/c10d/socket.cpp | 1 + torch/csrc/profiler/standalone/execution_trace_observer.cpp | 1 + torch/csrc/profiler/util.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/torch/csrc/distributed/c10d/socket.cpp b/torch/csrc/distributed/c10d/socket.cpp index 5013f2540..cbcd33a19 100644 --- a/torch/csrc/distributed/c10d/socket.cpp +++ b/torch/csrc/distributed/c10d/socket.cpp @@ -31,6 +31,7 @@ C10_DIAGNOSTIC_PUSH_AND_IGNORED_IF_DEFINED("-Wdeprecated") #include C10_DIAGNOSTIC_POP() #include +#include #include #include diff --git a/torch/csrc/profiler/standalone/execution_trace_observer.cpp b/torch/csrc/profiler/standalone/execution_trace_observer.cpp index 2ef2e5423..fb053e916 100644 --- 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 diff --git a/torch/csrc/profiler/util.cpp b/torch/csrc/profiler/util.cpp index 896bf606c..c229ce130 100644 --- a/torch/csrc/profiler/util.cpp +++ b/torch/csrc/profiler/util.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #ifdef USE_KINETO #include -- 2.45.2