Skip to content

Commit

Permalink
[Hexagon] Delete offload runtime, move files to right places (#11090)
Browse files Browse the repository at this point in the history
Within src/runtime/hexagon
- delete directory android,
- move files from hexagon to ., delete hexagon,
- merge host/hexagon_module.cc with hexagon_module.cc, delete host.

Rename HexagonHostModuleNode to HexagonModuleNode.
  • Loading branch information
Krzysztof Parzyszek authored Apr 22, 2022
1 parent effc23d commit e0e788b
Show file tree
Hide file tree
Showing 46 changed files with 57 additions and 6,211 deletions.
10 changes: 0 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -320,17 +320,7 @@ tvm_file_glob(GLOB RUNTIME_SRCS
)

if(BUILD_FOR_HEXAGON)
# Add file implementing posix_memalign when building the runtime as
# a shared library.
# This function is actually defined in the static libc, but when linking
# a shared library, libc is not linked into it. Some runtime systems
# don't implement posix_runtime, which causes runtime failires.
# To avoid this issue, Hexagon runtime contains an implementation of
# posix_memalign, but it should only be used with the dynamic TVM
# runtime, since it would cause multiple definition errors with the
# static one.
if(NOT BUILD_STATIC_RUNTIME)
list(APPEND RUNTIME_SRCS src/runtime/hexagon/android/hexagon_posix.cc)
# Allow undefined symbols (there will be some from libc).
set(TVM_NO_UNDEFINED_SYMBOLS "")
endif()
Expand Down
10 changes: 4 additions & 6 deletions cmake/modules/Hexagon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ if(NOT USE_HEXAGON)
if(BUILD_FOR_HOST)
list(APPEND COMPILER_SRCS src/target/opt/build_hexagon_off.cc)
endif()
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon/hexagon_buffer.cc)
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon/hexagon_common.cc)
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon/hexagon_user_dma.cc)
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_buffer.cc)
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_common.cc)
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_user_dma.cc)
return()
endif()

Expand Down Expand Up @@ -122,9 +122,7 @@ endfunction()

# Common sources for TVM runtime with Hexagon support
file_glob_append(RUNTIME_HEXAGON_SRCS
"${TVMRT_SOURCE_DIR}/hexagon/hexagon_module.cc"
"${TVMRT_SOURCE_DIR}/hexagon/hexagon/*.cc"
"${TVMRT_SOURCE_DIR}/hexagon/host/*.cc"
"${TVMRT_SOURCE_DIR}/hexagon/*.cc"
)


Expand Down
135 changes: 0 additions & 135 deletions src/runtime/hexagon/android/hexagon_device.h

This file was deleted.

144 changes: 0 additions & 144 deletions src/runtime/hexagon/android/hexagon_device_api.cc

This file was deleted.

Loading

0 comments on commit e0e788b

Please sign in to comment.