summaryrefslogtreecommitdiff
path: root/sci-ml/pytorch/files/pytorch-2.15.0-unbundle_kineto.patch
blob: 1233ae59631fcb0c835a973f7d73fc9913ffb599 (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
@@ -63,7 +63,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
@@ -1426,7 +1426,7 @@
   ${TORCH_ROOT}/third_party/miniz-3.0.2)
 
 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
@@ -1762,7 +1762,7 @@
     endif()
   endif()
 
-  if(NOT TARGET kineto)
+  if(FALSE)
     # Send Kineto's test binaries to their own subdirectory of build/bin so
     # the CI runner can glob them without sweeping up PyTorch's tests too.
     set(_kineto_saved_runtime_output_dir "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")