From 5a34ef7cfdd0b818e1fad33001a538ecded012bb Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 15 Jul 2024 21:29:26 +0800 Subject: [PATCH] Rebuilt for fmt 11 --- ...lude-fmt-ranges.h-for-using-fmt-join.patch | 54 +++++++++++++++++++ python-torch.spec | 1 + 2 files changed, 55 insertions(+) create mode 100644 0001-include-fmt-ranges.h-for-using-fmt-join.patch diff --git a/0001-include-fmt-ranges.h-for-using-fmt-join.patch b/0001-include-fmt-ranges.h-for-using-fmt-join.patch new file mode 100644 index 0000000..f7f6c7d --- /dev/null +++ b/0001-include-fmt-ranges.h-for-using-fmt-join.patch @@ -0,0 +1,54 @@ +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 + diff --git a/python-torch.spec b/python-torch.spec index 0747835..f27f099 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -284,6 +284,7 @@ Patch103: 0001-can-not-use-with-c-files.patch # Patch104: 0001-use-any-hip.patch Patch105: 0001-disable-use-of-aotriton.patch %endif +Patch106: 0001-include-fmt-ranges.h-for-using-fmt-join.patch ExclusiveArch: x86_64 aarch64 %global toolchain gcc