-
Notifications
You must be signed in to change notification settings - Fork 64
tests error #155
Comments
My pytorch did not have diff --git a/CMakeLists.txt b/CMakeLists.txt
index a6108e6..b656518 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,7 +32,7 @@ add_subdirectory(${TVM_DIR})
pybind11_add_module(_torch_tvm SHARED ${TORCH_TVM_SRCS})
target_link_libraries(_torch_tvm PUBLIC
- torch pybind11 tvm tvm_topi)
+ torch c10 torch_python pybind11 tvm tvm_topi)
target_include_directories(_torch_tvm PUBLIC
${CMAKE_CURRENT_SOURCE_DIR} This fix was included in my first request (I forgot to mention it) and it did not fix the problem. The following commands have the following outputs:
|
To double-check the linking is working you can try:
And you should see a similar list including |
This issue was caused because my installed tvm was v0.6.0 from master, but this repo requires that the included facebookexperimental version be installed. Uninstalling the upstream tvm and following the tvm install instructions on the included tvm solves this issue. |
I am using Ubuntu 16.04, pytorch 1.4.0, latest master version of pytorch-tvm, and it builds correctly. However, when running tests, it appears to fail to import this library:
This is a different undefined symbol than other issues (#149, #93).
The text was updated successfully, but these errors were encountered: