Initial import
Signed-off-by: Tom Rix <trix@redhat.com>
This commit is contained in:
parent
7d5865168f
commit
48192fa108
13 changed files with 1272 additions and 0 deletions
27
0001-python-torch-link-with-python.patch
Normal file
27
0001-python-torch-link-with-python.patch
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
From cef92207b79ad53e3fcc1b0e22ba91cb9422968c Mon Sep 17 00:00:00 2001
|
||||
From: Tom Rix <trix@redhat.com>
|
||||
Date: Sat, 18 Nov 2023 09:38:52 -0500
|
||||
Subject: [PATCH] python-torch link with python
|
||||
|
||||
Signed-off-by: Tom Rix <trix@redhat.com>
|
||||
---
|
||||
torch/CMakeLists.txt | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/torch/CMakeLists.txt b/torch/CMakeLists.txt
|
||||
index 8d5375f320..6f8c7b65c4 100644
|
||||
--- a/torch/CMakeLists.txt
|
||||
+++ b/torch/CMakeLists.txt
|
||||
@@ -312,6 +312,9 @@ add_dependencies(torch_python torch_python_stubs)
|
||||
add_dependencies(torch_python flatbuffers)
|
||||
|
||||
|
||||
+# Unresolved syms in -lpython
|
||||
+target_link_libraries(torch_python PUBLIC ${PYTHON_LIBRARIES})
|
||||
+
|
||||
if(USE_PRECOMPILED_HEADERS)
|
||||
target_precompile_headers(torch_python PRIVATE
|
||||
"$<$<COMPILE_LANGUAGE:CXX>:ATen/ATen.h>")
|
||||
--
|
||||
2.42.1
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue