File tree 2 files changed +3
-2
lines changed
multipy/runtime/interpreter
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
101
101
endif ()
102
102
103
103
target_include_directories (torch_deployinterpreter PRIVATE ${INTERPRETER_DIR} )
104
- target_include_directories (torch_deployinterpreter BEFORE PUBLIC ${Python3_INCLUDE_DIRS} )
104
+ target_include_directories (torch_deployinterpreter BEFORE PUBLIC "-Wl,--no-as-needed -rdynamic" ${Python3_INCLUDE_DIRS} )
105
105
106
106
target_link_libraries (torch_deployinterpreter PRIVATE fmt::fmt-header-only)
107
107
target_link_libraries (torch_deployinterpreter PRIVATE gtest)
108
- target_link_libraries (torch_deployinterpreter PRIVATE torch_python)
108
+ target_link_libraries (torch_deployinterpreter PRIVATE "-Wl,--no-as-needed -rdynamic -Wno-undef" torch_python)
109
109
target_link_libraries (torch_deployinterpreter PRIVATE multipy_torch)
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ except ModuleNotFoundError:
179
179
_v.git_version = 'fake'
180
180
_v.hip = None
181
181
182
+ sys.using_multipy_interpreter = True
182
183
183
184
if torch.cuda.is_available():
184
185
torch.zeros(1).cuda() # force cuda init...
You can’t perform that action at this time.
0 commit comments