Commit 26466047 by Josh Fromm Committed by Yizhi Liu

[Runtime] Android argsort support (#3472)

* Add contrib sort functions to android rpc app.

* replaced tab with spaces oops.
parent 77445311
......@@ -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
......@@ -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
......
......@@ -66,6 +66,10 @@
#include "../src/runtime/vulkan/vulkan_module.cc"
#endif
#ifdef USE_SORT
#include "../src/contrib/sort/sort.cc"
#endif
#include <android/log.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment