mehrdadh opened a new pull request #9631:
URL: https://github.com/apache/tvm/pull/9631


   This PR:
   - Reuses minRPC implementation for hexagon to create RPC connection from 
host to hexagon device which is passed through android RPC server.
   - Adds HexagonLauncher which manages file upload to Android, initiate RPC 
server on Android and manage RPC session to hexagon.
   
   To use this feature you need to build TVM using these configs:
   
   ```
   cmake -DUSE_HEXAGON_RPC=ON \
          
-DUSE_ANDROID_TOOLCHAIN=/path/to/android-ndk/build/cmake/android.toolchain.cmake
 \
          -DANDROID_PLATFORM=android-28 \
          -DANDROID_ABI=arm64-v8a \
          -DUSE_HEXAGON_ARCH=v65|v66|v68 \
          -DUSE_HEXAGON_SDK=/path/to/Hexagon/SDK \
          -DUSE_HEXAGON_TOOLCHAIN=/path/to/Hexagon/toolchain/ \
          -DUSE_LLVM=/path/to/llvm/bin/llvm-config \
          -DUSE_CPP_RPC=ON \
          -DCMAKE_CXX_COMPILER=/path/to/clang++ \    
          -DCMAKE_CXX_FLAGS='-stdlib=libc++' ..
   ```
   
   This will build:
   - `libtvm` and `libtvm_runtime` using hexagon LLVM and`tvm_rcp` for **host**.
   - `libtvm_runtime_android.so` and `tvm_rpc_android` for **Android** under 
`build/hexagon_rpc`
   - `libhexagon_rpc_skel.so` library which include RPC server for **Hexagon** 
under `build/hexagon_rpc`
   
   cc @areusch @csullivan @adstraw


-- 
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]


Reply via email to