summaryrefslogtreecommitdiff
path: root/sci-ml/pytorch/files/pytorch-2.13.0-unbundle_kineto.patch
blob: 9280734104809972b7dc578b92a885e548c9ce73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/torch/CMakeLists.txt	2024-11-09 20:50:21.806784527 +0100
+++ b/torch/CMakeLists.txt	2024-11-09 20:52:56.303892418 +0100
@@ -67,7 +67,7 @@
 
     ${TORCH_ROOT}/third_party/gloo
     ${TORCH_ROOT}/third_party/onnx
-    ${TORCH_ROOT}/third_party/kineto/libkineto/include
+    "/usr/include/kineto"
     ${TORCH_ROOT}/third_party/cpp-httplib
     ${TORCH_ROOT}/third_party/nlohmann/include
 
--- a/caffe2/CMakeLists.txt	2024-11-09 20:58:37.698085144 +0100
+++ b/caffe2/CMakeLists.txt	2024-11-09 20:59:15.771391643 +0100
@@ -1185,7 +1185,7 @@
   ${TORCH_ROOT}/third_party/miniz-2.1.0)
 
 target_include_directories(torch_cpu PRIVATE
-  ${TORCH_ROOT}/third_party/kineto/libkineto/include)
+  "/usr/include/kineto")
 
 if(USE_KINETO)
   target_include_directories(torch_cpu PRIVATE
--- a/cmake/Dependencies.cmake	2025-05-04 15:30:00.268862558 +0200
+++ b/cmake/Dependencies.cmake	2025-05-04 15:30:13.275934233 +0200
@@ -1711,7 +1711,7 @@
     endif()
   endif()
 
-  if(NOT TARGET kineto)
+  if(FALSE)
     add_subdirectory("${KINETO_SOURCE_DIR}")
     set_property(TARGET kineto PROPERTY POSITION_INDEPENDENT_CODE ON)
   endif()