kparzysz-quic commented on code in PR #11145:
URL: https://github.com/apache/tvm/pull/11145#discussion_r864208053
##########
cmake/modules/Hexagon.cmake:
##########
@@ -119,14 +116,23 @@ function(add_hexagon_wrapper_paths)
link_directories("${HEXAGON_TOOLCHAIN}/lib/iss")
endfunction()
-
-# Common sources for TVM runtime with Hexagon support
-file_glob_append(RUNTIME_HEXAGON_SRCS
- "${TVMRT_SOURCE_DIR}/hexagon/*.cc"
-)
-
+if(BUILD_FOR_HEXAGON OR USE_HEXAGON_RPC)
+ # Common sources for TVM runtime with Hexagon support
+ file_glob_append(RUNTIME_HEXAGON_SRCS
+ "${TVMRT_SOURCE_DIR}/hexagon/*.cc"
+ )
+else()
+ file_glob_append(RUNTIME_HEXAGON_SRCS
+ "${TVMRT_SOURCE_DIR}/hexagon/hexagon_module.cc"
+ )
+endif()
Review Comment:
This part disables Hexagon runtime when building for x86. Please revert
this.
--
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]