[Runtime] Android argsort support (#3472)
authorJosh Fromm <jwfromm@uw.edu>
Tue, 2 Jul 2019 04:16:12 +0000 (21:16 -0700)
committerYizhi Liu <liuyizhi@apache.org>
Tue, 2 Jul 2019 04:16:12 +0000 (21:16 -0700)
* Add contrib sort functions to android rpc app.

* replaced tab with spaces oops.

apps/android_rpc/app/src/main/jni/Application.mk
apps/android_rpc/app/src/main/jni/make/config.mk
apps/android_rpc/app/src/main/jni/tvm_runtime.h

index aef7629..548b691 100644 (file)
@@ -23,3 +23,7 @@ ifeq ($(USE_VULKAN), 1)
     APP_CPPFLAGS += -DTVM_VULKAN_RUNTIME=1
     APP_LDFLAGS += -lvulkan
 endif
+
+ifeq ($(USE_SORT), 1)
+    APP_CPPFLAGS += -DUSE_SORT=1
+endif
index c40ce4b..f61811b 100644 (file)
@@ -22,6 +22,9 @@ USE_OPENCL = 0
 # whether to enable Vulkan during compile
 USE_VULKAN = 0
 
+# whether to enable contrib sort functions during compile
+USE_SORT = 1
+
 ifeq ($(USE_VULKAN), 1)
   # Statically linking vulkan requires API Level 24 or higher
   APP_PLATFORM = android-24
index 60b41ba..aadc4d1 100644 (file)
 #include "../src/runtime/vulkan/vulkan_module.cc"
 #endif
 
+#ifdef USE_SORT
+#include "../src/contrib/sort/sort.cc"
+#endif
+
 
 #include <android/log.h>