diff --git a/cmake/modules/Hexagon.cmake b/cmake/modules/Hexagon.cmake index 7d33b6b58d53b..c1b2c3535b4f6 100644 --- a/cmake/modules/Hexagon.cmake +++ b/cmake/modules/Hexagon.cmake @@ -75,6 +75,9 @@ if (NOT BUILD_FOR_HEXAGON AND NOT BUILD_FOR_ANDROID) USE_HEXAGON_PROXY_RPC STREQUAL "OFF" AND NOT USE_HEXAGON_RPC) if(USE_HEXAGON_DEVICE STREQUAL "OFF") list(APPEND COMPILER_SRCS src/target/opt/build_hexagon_off.cc) + if (NOT USE_HEXAGON_RPC) + return() + endif() elseif(NOT USE_HEXAGON_DEVICE STREQUAL "${PICK_SIM}" AND NOT USE_HEXAGON_DEVICE STREQUAL "${PICK_HW}") set(ERROR_MSG diff --git a/src/runtime/hexagon/rpc/hexagon/rpc_server.cc b/src/runtime/hexagon/rpc/hexagon/rpc_server.cc index bf4b0e3f5d856..06a9d4debe003 100644 --- a/src/runtime/hexagon/rpc/hexagon/rpc_server.cc +++ b/src/runtime/hexagon/rpc/hexagon/rpc_server.cc @@ -40,6 +40,7 @@ extern "C" { #include "../../hexagon/hexagon_common.h" #include "hexagon_rpc.h" +// TODO: make this configurable. #define TVM_HEXAGON_RPC_BUFF_SIZE_BYTES 2 * 1024 * 1024 #define TVM_LOG_CUSTOMIZE 1