Skip to content

Commit

Permalink
Fix the building error in android_deploy (apache#1262)
Browse files Browse the repository at this point in the history
* Fix a link in android_deploy/README.md and a error while building android_deploy.

* revert and change APP_STL in Application.mk
  • Loading branch information
Tatsuya Nishiyama authored and tqchen committed Jun 12, 2018
1 parent 138830f commit 91ecef3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/android_deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ If everything goes well, you will find compile tools in `/opt/android-toolchain-

### Place compiled model on Android application assets folder

Follow instruction to get compiled version model for android target [here.](https://tvm.ai/deploy/android.html)
Follow instruction to get compiled version model for android target [here.](http://docs.tvm.ai/deploy/android.html)

Copied these compiled model deploy_lib.so, deploy_graph.json and deploy_param.params to apps/android_deploy/app/src/main/assets/ and modify TVM flavor changes on [java](https://github.com/dmlc/tvm/blob/master/apps/android_deploy/app/src/main/java/ml/dmlc/tvm/android/demo/MainActivity.java#L81)

Expand Down
2 changes: 1 addition & 1 deletion apps/android_deploy/app/src/main/jni/Application.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif

include $(config)

APP_STL := gnustl_static
APP_STL := c++_static

APP_CPPFLAGS += -DDMLC_LOG_STACK_TRACE=0 -DTVM4J_ANDROID=1 -std=c++11 -Oz -frtti
ifeq ($(USE_OPENCL), 1)
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/thread_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class ParallelLauncher {
tvm::runtime::threading::Yield();
}
if (!has_error_.load()) return 0;
// the following is intended to use string due to
// security issue raised in SGX backend
std::string err("");
for (size_t i = 0; i < par_errors_.size(); ++i) {
if (par_errors_[i].length() != 0) {
Expand Down

0 comments on commit 91ecef3

Please sign in to comment.