Skip to content

Commit 67b19ef

Browse files
Krzysztof ParzyszekSergey Shtin
authored andcommitted
[Hexagon] Delete offload runtime, move files to right places (apache#11090)
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.
1 parent 44923c9 commit 67b19ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+57
-6211
lines changed

CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,7 @@ tvm_file_glob(GLOB RUNTIME_SRCS
320320
)
321321

322322
if(BUILD_FOR_HEXAGON)
323-
# Add file implementing posix_memalign when building the runtime as
324-
# a shared library.
325-
# This function is actually defined in the static libc, but when linking
326-
# a shared library, libc is not linked into it. Some runtime systems
327-
# don't implement posix_runtime, which causes runtime failires.
328-
# To avoid this issue, Hexagon runtime contains an implementation of
329-
# posix_memalign, but it should only be used with the dynamic TVM
330-
# runtime, since it would cause multiple definition errors with the
331-
# static one.
332323
if(NOT BUILD_STATIC_RUNTIME)
333-
list(APPEND RUNTIME_SRCS src/runtime/hexagon/android/hexagon_posix.cc)
334324
# Allow undefined symbols (there will be some from libc).
335325
set(TVM_NO_UNDEFINED_SYMBOLS "")
336326
endif()

cmake/modules/Hexagon.cmake

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ if(NOT USE_HEXAGON)
8484
if(BUILD_FOR_HOST)
8585
list(APPEND COMPILER_SRCS src/target/opt/build_hexagon_off.cc)
8686
endif()
87-
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon/hexagon_buffer.cc)
88-
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon/hexagon_common.cc)
89-
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon/hexagon_user_dma.cc)
87+
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_buffer.cc)
88+
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_common.cc)
89+
list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_user_dma.cc)
9090
return()
9191
endif()
9292

@@ -122,9 +122,7 @@ endfunction()
122122

123123
# Common sources for TVM runtime with Hexagon support
124124
file_glob_append(RUNTIME_HEXAGON_SRCS
125-
"${TVMRT_SOURCE_DIR}/hexagon/hexagon_module.cc"
126-
"${TVMRT_SOURCE_DIR}/hexagon/hexagon/*.cc"
127-
"${TVMRT_SOURCE_DIR}/hexagon/host/*.cc"
125+
"${TVMRT_SOURCE_DIR}/hexagon/*.cc"
128126
)
129127

130128

src/runtime/hexagon/android/hexagon_device.h

Lines changed: 0 additions & 135 deletions
This file was deleted.

src/runtime/hexagon/android/hexagon_device_api.cc

Lines changed: 0 additions & 144 deletions
This file was deleted.

0 commit comments

Comments
 (0)