diff --git a/cmake/modules/Hexagon.cmake b/cmake/modules/Hexagon.cmake index 03ab62de66b0..6e9b7dc70cbf 100644 --- a/cmake/modules/Hexagon.cmake +++ b/cmake/modules/Hexagon.cmake @@ -116,7 +116,7 @@ function(add_hexagon_wrapper_paths) link_directories("${HEXAGON_TOOLCHAIN}/lib/iss") endfunction() -if(BUILD_FOR_HEXAGON OR USE_HEXAGON_RPC) +if(BUILD_FOR_HEXAGON) # Common sources for TVM runtime with Hexagon support file_glob_append(RUNTIME_HEXAGON_SRCS "${TVMRT_SOURCE_DIR}/hexagon/*.cc" diff --git a/src/runtime/hexagon/rpc/simulator/session.cc b/src/runtime/hexagon/rpc/simulator/session.cc index 7d88bbb748d0..0469ad5e6e1a 100644 --- a/src/runtime/hexagon/rpc/simulator/session.cc +++ b/src/runtime/hexagon/rpc/simulator/session.cc @@ -568,10 +568,6 @@ detail::Optional SimulatorRPCChannel::GetCPU(const detail::MaybeStri } SimulatorRPCChannel::SimulatorRPCChannel(int stack_size, std::string args) { - const auto* api = tvm::runtime::Registry::Get("device_api.hexagon"); - ICHECK(api != nullptr); - tvm::runtime::Registry::Register("device_api.cpu", true).set_body(*api); - const char* sdk_root_env = std::getenv("HEXAGON_SDK_ROOT"); ICHECK(sdk_root_env != nullptr) << "Please set HEXAGON_SDK_ROOT"; const char* toolchain_env = std::getenv("HEXAGON_TOOLCHAIN");