You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "tqchen (via GitHub)" <gi...@apache.org> on 2026/06/16 13:51:36 UTC
[PR] [REFACTOR][HEXAGON] Phase out Hexagon app wrappers [tvm]
tqchen opened a new pull request, #19796:
URL: https://github.com/apache/tvm/pull/19796
## Summary
The old Hexagon app wrappers duplicate artifact collection around the CMake Hexagon RPC build and leave stale app-side entry points. This PR removes those wrappers while keeping the remaining Hexagon RPC artifacts available from the main build outputs.
## Changes
- Remove the obsolete Hexagon app wrapper directories.
- Preserve Hexagon RPC helper artifact names through the cpp_rpc build.
- Drop stale CI/docs references to the removed app output directory.
--
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: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] [REFACTOR][HEXAGON] Phase out Hexagon app and test wrappers [tvm]
Posted by "tlopex (via GitHub)" <gi...@apache.org>.
tlopex merged PR #19796:
URL: https://github.com/apache/tvm/pull/19796
--
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: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] [REFACTOR][HEXAGON] Phase out Hexagon app wrappers [tvm]
Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on code in PR #19796:
URL: https://github.com/apache/tvm/pull/19796#discussion_r3421279067
##########
tests/python/contrib/test_hexagon/README.md:
##########
@@ -38,22 +38,10 @@ export HEXAGON_TOOLCHAIN="Path to Hexagon toolchain. It can be the Hexagon toolc
You can find more information about downloading [Hexagon SDK](https://developer.qualcomm.com/software/hexagon-dsp-sdk).
-First build Hexagon API application under `apps/hexagon_api`. This step will generate `tvm_rpc_android` and `libtvm_runtime.so` to run on Android. Also, it generates `libtvm_runtime.a` `libtvm_runtime.so`, `libhexagon_rpc_skel.so` and `libhexagon_rpc_sim.so` to run on Hexagon device or Hexagon simulator.
-
-```bash
-cd apps/hexagon_api
-mkdir build
-cd build
-cmake -DANDROID_ABI=arm64-v8a \
- -DANDROID_PLATFORM=android-28 \
- -DUSE_ANDROID_TOOLCHAIN="path to `android-ndk/build/cmake/android.toolchain.cmake` file" \
- -DUSE_HEXAGON_ARCH=v65|v66|v68|v69|v73|v75 \
- -DUSE_HEXAGON_SDK="path to Hexagon SDK" \
- -DUSE_HEXAGON_TOOLCHAIN="path to Hexagon toolchain `Tools` sub-directory which explained above" \
- -DUSE_OUTPUT_BINARY_DIR="path to `build/hexagon_api_output` which is a sub-directory of `tvm`" ..
-
-make -j2
-```
+First build the Hexagon RPC binaries. These are produced by TVM's CMake build
+when Hexagon RPC support is enabled, and include `tvm_rpc_android`,
+`tvm_rpc_x86`, `libhexagon_rpc_skel.so`, `libhexagon_rpc_sim.so`, and
+`android_bash.sh.template`.
Review Comment:

To make the instructions clearer for users, it would be helpful to explicitly mention the CMake flag (`-DUSE_HEXAGON_RPC=ON`) required to enable Hexagon RPC support.
```suggestion
First build the Hexagon RPC binaries. These are produced by TVM's CMake build
when Hexagon RPC support is enabled (by passing -DUSE_HEXAGON_RPC=ON to CMake),
and include tvm_rpc_android, tvm_rpc_x86, libhexagon_rpc_skel.so,
libhexagon_rpc_sim.so, and android_bash.sh.template.
```
--
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: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] [REFACTOR][HEXAGON] Phase out Hexagon app wrappers [tvm]
Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on code in PR #19796:
URL: https://github.com/apache/tvm/pull/19796#discussion_r3421279059
##########
apps/cpp_rpc/CMakeLists.txt:
##########
@@ -61,6 +61,28 @@ if (BUILD_FOR_ANDROID AND USE_HEXAGON)
list(APPEND TVM_RPC_LINKER_LIBS cdsprpc log)
endif()
+if(USE_HEXAGON)
+ add_custom_command(TARGET tvm_rpc POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different
+ "${CMAKE_CURRENT_SOURCE_DIR}/../../src/backend/hexagon/runtime/rpc/android_bash.sh.template"
+ "${CMAKE_BINARY_DIR}/android_bash.sh.template"
+ )
+
+ if(BUILD_FOR_ANDROID)
+ add_custom_command(TARGET tvm_rpc POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy
+ $<TARGET_FILE:tvm_rpc>
+ "${CMAKE_BINARY_DIR}/tvm_rpc_android"
+ )
+ elseif(BUILD_FOR_HOST)
+ add_custom_command(TARGET tvm_rpc POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy
+ $<TARGET_FILE:tvm_rpc>
+ "${CMAKE_BINARY_DIR}/tvm_rpc_x86"
+ )
+ endif()
Review Comment:

For consistency and to avoid unnecessary timestamp updates (which can trigger redundant downstream build steps or redeployments), consider using `copy_if_different` instead of `copy` when copying the `tvm_rpc` executable.
```
if(BUILD_FOR_ANDROID)
add_custom_command(TARGET tvm_rpc POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:tvm_rpc>
"${CMAKE_BINARY_DIR}/tvm_rpc_android"
)
elseif(BUILD_FOR_HOST)
add_custom_command(TARGET tvm_rpc POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:tvm_rpc>
"${CMAKE_BINARY_DIR}/tvm_rpc_x86"
)
endif()
```
--
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: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org