File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
multipy/runtime/interpreter Expand file tree Collapse file tree 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")
101101endif ()
102102
103103target_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} )
105105
106106target_link_libraries (torch_deployinterpreter PRIVATE fmt::fmt-header-only)
107107target_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)
109109target_link_libraries (torch_deployinterpreter PRIVATE multipy_torch)
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ except ModuleNotFoundError:
179179 _v.git_version = 'fake'
180180 _v.hip = None
181181
182+ sys.using_multipy_interpreter = True
182183
183184if torch.cuda.is_available():
184185 torch.zeros(1).cuda() # force cuda init...
You can’t perform that action at this time.
0 commit comments