echuraev commented on PR #14922:
URL: https://github.com/apache/tvm/pull/14922#issuecomment-1569655491
> @echuraev have you ever built gtests (opencl-cpptest bin) for Android ?
Yes, I did it. As far as I remember it won't print test results on the host
machine, you have to take a look at the log file of `tvm_rpc` or it is
necessary to extend the current implementation. I suppose that the same tests
for hexagon can transfer test output through RPC to host.
You can build `opencl-cpptest` by the following commands:
```
$ cmake -DCMAKE_BUILD_TYPE=Release
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake
-DANDROID_ABI=arm64-v8a -DANDROID_NATIVE_API_LEVEL=android-23
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON -DANDROID_STL=c++_static -DUSE_OPENCL=ON
-DUSE_CPP_RPC=ON -DUSE_HEXAGON_SDK=OFF -DUSE_OPENCL_GTEST=/path/to/googletests
..
$ make -j8 opencl-cpptest
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]