mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-07 13:44:38 +02:00
44 lines
1.5 KiB
Diff
44 lines
1.5 KiB
Diff
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 <aaronGokaslan@gmail.com>
|
|
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 <fmt/chrono.h>
|
|
C10_DIAGNOSTIC_POP()
|
|
#include <fmt/format.h>
|
|
+#include <fmt/ranges.h>
|
|
|
|
#include <torch/csrc/distributed/c10d/error.h>
|
|
#include <torch/csrc/distributed/c10d/exception.h>
|
|
--- 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 <fmt/format.h>
|
|
+#include <fmt/ranges.h>
|
|
#include <chrono>
|
|
#include <cmath>
|
|
#include <fstream>
|
|
--- a/torch/csrc/profiler/util.cpp
|
|
+++ b/torch/csrc/profiler/util.cpp
|
|
@@ -5,6 +5,7 @@
|
|
#include <c10/util/ArrayRef.h>
|
|
#include <c10/util/irange.h>
|
|
#include <fmt/format.h>
|
|
+#include <fmt/ranges.h>
|
|
|
|
#ifdef USE_KINETO
|
|
#include <libkineto.h>
|