diff --git a/apps/android_deploy/README.md b/apps/android_deploy/README.md index 94cc9984..801ca8bd 100644 --- a/apps/android_deploy/README.md +++ b/apps/android_deploy/README.md @@ -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) diff --git a/apps/android_deploy/app/src/main/jni/Application.mk b/apps/android_deploy/app/src/main/jni/Application.mk index 01cad9b7..8e81a8d6 100644 --- a/apps/android_deploy/app/src/main/jni/Application.mk +++ b/apps/android_deploy/app/src/main/jni/Application.mk @@ -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) diff --git a/src/runtime/thread_pool.cc b/src/runtime/thread_pool.cc index b7ea6f5b..5e5c0850 100644 --- a/src/runtime/thread_pool.cc +++ b/src/runtime/thread_pool.cc @@ -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) {