[libtorch] Include `<chrono>` for `high_resolution_clock` (#43234)

This commit is contained in:
Lily Wang 2025-01-15 17:43:35 +08:00 committed by GitHub
parent 3ebdcf4179
commit e1118ae492
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,11 @@
diff --git a/torch/csrc/jit/runtime/logging.h b/torch/csrc/jit/runtime/logging.h
index 5499ecf..269168e 100644
--- a/torch/csrc/jit/runtime/logging.h
+++ b/torch/csrc/jit/runtime/logging.h
@@ -1,5 +1,6 @@
#pragma once
+#include <chrono>
#include <mutex>
#include <string>
#include <unordered_map>

View File

@ -39,6 +39,7 @@ vcpkg_from_github(
fix-aten-cutlass.patch
fix-build-error-with-fmt11.patch
no-abs-path.patch
add-include-chrono.patch
)
file(REMOVE_RECURSE "${SOURCE_PATH}/caffe2/core/macros.h") # We must use generated header files

View File

@ -1,7 +1,7 @@
{
"name": "libtorch",
"version": "2.1.2",
"port-version": 9,
"port-version": 10,
"description": "Tensors and Dynamic neural networks in Python with strong GPU acceleration",
"homepage": "https://pytorch.org/",
"license": null,

View File

@ -5230,7 +5230,7 @@
},
"libtorch": {
"baseline": "2.1.2",
"port-version": 9
"port-version": 10
},
"libtorrent": {
"baseline": "2.0.10",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7307f8c37b266aeb61d83e069740e75cff863bf6",
"version": "2.1.2",
"port-version": 10
},
{
"git-tree": "0a4d67bf0f603494ff7ce3e51587513a1df295fe",
"version": "2.1.2",