-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[APP] Android RPC #322
Conversation
// dummy parallel runtime | ||
int TVMBackendParallelLaunch( | ||
FTVMParallelLambda flambda, | ||
void* cdata, |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not reinterpret_cast?
* [Contrib] CuDNN v7 Support * Add test
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 |
* 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
* [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
TBD:
tvm.contrib.cc.create_shared
)