Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions multipy/runtime/interpreter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
endif()

target_include_directories(torch_deployinterpreter PRIVATE ${INTERPRETER_DIR})
target_include_directories(torch_deployinterpreter BEFORE PUBLIC ${Python3_INCLUDE_DIRS})
target_include_directories(torch_deployinterpreter BEFORE PUBLIC "-Wl,--no-as-needed -rdynamic" ${Python3_INCLUDE_DIRS})

target_link_libraries(torch_deployinterpreter PRIVATE fmt::fmt-header-only)
target_link_libraries(torch_deployinterpreter PRIVATE gtest)
target_link_libraries(torch_deployinterpreter PRIVATE torch_python)
target_link_libraries(torch_deployinterpreter PRIVATE "-Wl,--no-as-needed -rdynamic -Wno-undef" torch_python)
target_link_libraries(torch_deployinterpreter PRIVATE multipy_torch)
1 change: 1 addition & 0 deletions multipy/runtime/interpreter/interpreter_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ except ModuleNotFoundError:
_v.git_version = 'fake'
_v.hip = None

sys.using_multipy_interpreter = True

if torch.cuda.is_available():
torch.zeros(1).cuda() # force cuda init...
Expand Down