This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 2e32f36 [FIX] Fix howto_deploy (#7841)
2e32f36 is described below
commit 2e32f36fecaa3d5025705a98594a9f4a4f6d9f74
Author: Tristan Konolige <[email protected]>
AuthorDate: Wed Apr 14 05:44:41 2021 -0700
[FIX] Fix howto_deploy (#7841)
We were missing files in tvm_runtime_pack.cc
---
apps/howto_deploy/Makefile | 3 ++-
apps/howto_deploy/tvm_runtime_pack.cc | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/apps/howto_deploy/Makefile b/apps/howto_deploy/Makefile
index a6d668f..9741d58 100644
--- a/apps/howto_deploy/Makefile
+++ b/apps/howto_deploy/Makefile
@@ -22,7 +22,8 @@ DMLC_CORE=${TVM_ROOT}/3rdparty/dmlc-core
PKG_CFLAGS = -std=c++14 -O2 -fPIC\
-I${TVM_ROOT}/include\
-I${DMLC_CORE}/include\
- -I${TVM_ROOT}/3rdparty/dlpack/include
+ -I${TVM_ROOT}/3rdparty/dlpack/include\
+ -DDMLC_USE_LOGGING_LIBRARY=\<tvm/runtime/logging.h\>
PKG_LDFLAGS = -L${TVM_ROOT}/build -ldl -pthread
diff --git a/apps/howto_deploy/tvm_runtime_pack.cc
b/apps/howto_deploy/tvm_runtime_pack.cc
index 68a917c..a2e30c6 100644
--- a/apps/howto_deploy/tvm_runtime_pack.cc
+++ b/apps/howto_deploy/tvm_runtime_pack.cc
@@ -37,7 +37,9 @@
* You need to remember to change it to point to the right file.
*
*/
+#define TVM_USE_LIBBACKTRACE 0
#include "../../src/runtime/c_runtime_api.cc"
+#include "../../src/runtime/container.cc"
#include "../../src/runtime/cpu_device_api.cc"
#include "../../src/runtime/file_utils.cc"
#include "../../src/runtime/library_module.cc"