Skip to content

Commit

Permalink
Fix build for other targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh committed Dec 8, 2021
1 parent a7ee1a9 commit 532bf1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/modules/Hexagon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/runtime/hexagon/rpc/hexagon/rpc_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ extern "C" {
#include "../../hexagon/hexagon_common.h"
#include "hexagon_rpc.h"

// TODO(mehrdadh): make this configurable.
#define TVM_HEXAGON_RPC_BUFF_SIZE_BYTES 2 * 1024 * 1024

#define TVM_LOG_CUSTOMIZE 1
Expand Down

0 comments on commit 532bf1b

Please sign in to comment.