Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APP] Android RPC #322

Closed
wants to merge 21 commits into from
Closed

[APP] Android RPC #322

wants to merge 21 commits into from

Conversation

yzhliu
Copy link
Member

@yzhliu yzhliu commented Aug 14, 2017

TBD:

  • Build android JNI automatically
  • OpenCL support & test
  • Build & sign .apk
  • Generate android .o & .so in python (seems that we can simply re-use tvm.contrib.cc.create_shared)
  • android rpc UT & Instrumentation test

@yzhliu yzhliu changed the title [APP] Android RPC first version [APP] Android RPC Aug 14, 2017
// dummy parallel runtime
int TVMBackendParallelLaunch(
FTVMParallelLambda flambda,
void* cdata,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For android, include src/runtime/threadpool.cc to include multi-threading runtime

@@ -271,9 +279,13 @@ extern "C" int funcInvokeCallback(TVMValue *args,
// Free callback function
extern "C" void funcFreeCallback(void *resourceHandle) {
JNIEnv *env;
int jniStatus = _jvm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6);
int jniStatus = _jvm->GetEnv((void **)(&env), JNI_VERSION_1_6);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not reinterpret_cast?

@tqchen
Copy link
Member

tqchen commented Aug 15, 2017

For Generate android .o & .so in python, it is likely that we can reuse code from create_shared, but need to automatically point env to the NDK's compiler as well as setup the names. Similarly we need a codesign tool, so it is likely we will need a tvm.contrib.ndk as https://github.com/dmlc/tvm/blob/master/python/tvm/contrib/xcode.py#L55

wetliu and others added 18 commits August 15, 2017 17:10
* rename the nchw and pass the unit test; going to do it for nhwc depthwise

* bug with fusion

* nchw works fine; nhwc float32 problem remains

* still cannot bind them together

* fusion works

* syntax fix

* all bugs fixed; test cases pass

* minor fix on nn.h
* [NNPack] Support for threadpool

* fix lint

* fix lint

* Use static class function
…, doc typo fixed (#345)

* conv_nchw parameter updated to the one which generates mobilenet benchmarks, doc typo fixed

* removed unused variables
* [BUILD][LLVM] Support LLVM mainline 5.0 6.0

* Reduce parallelism
@tqchen tqchen closed this Aug 20, 2017
tqchen pushed a commit to tqchen/tvm that referenced this pull request May 26, 2018
tqchen pushed a commit to tqchen/tvm that referenced this pull request Jul 6, 2018
sergei-mironov pushed a commit to sergei-mironov/tvm that referenced this pull request Aug 8, 2018
vinx13 pushed a commit to vinx13/tvm that referenced this pull request Mar 9, 2022
* [TIR][Schedule] Replace VarCollector with PreOrderVisit

* [TIR][Schedule] rfactor: fix one of the bugs

* [TIR][Schedule] rfactor: add a new unittest

* [TIR][Schedule] rfactor: reorganize

* [TIR][Schedule] rfactor: reformat

* [TIR][Schedule] add name of rfactor block

* [TIR][Schedule] rewrite part of rfactor, and modify the tests

* [TIR][Schedule] review write back part

* [TIR][Schedule] reformat

* [TIR][Schedule] perhaps have fixed the last bug

* [TIR][Schedule] add test

* [TIR][Schedule] style
gigiblender pushed a commit to gigiblender/tvm that referenced this pull request Jan 19, 2023
junrushao pushed a commit to junrushao/tvm that referenced this pull request Feb 8, 2023
yelite pushed a commit to yelite/tvm that referenced this pull request Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants