You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ar...@apache.org on 2021/05/05 18:21:48 UTC
[tvm] branch main updated (301ce49 -> f85cab2)
This is an automated email from the ASF dual-hosted git repository.
areusch pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git.
from 301ce49 [PROFILER] Add shape, structural hash, and layout information to profiling (#7894)
add f85cab2 [AOT] Introducing AOT in TVM (#7785)
No new revisions were added by this update.
Summary of changes:
apps/bundle_deploy/bundle.c | 6 +-
apps/bundle_deploy/bundle_static.c | 6 +-
cmake/modules/StandaloneCrt.cmake | 3 +-
.../tvm/runtime/crt/{memory.h => page_allocator.h} | 12 +-
include/tvm/runtime/crt/stack_allocator.h | 60 ++
.../tvm/runtime/executor_info.h | 21 +-
include/tvm/runtime/module.h | 2 +
include/tvm/tir/builtin.h | 27 +
python/tvm/driver/tvmc/model.py | 4 +-
python/tvm/micro/model_library_format.py | 24 +-
...aph_executor_factory.py => executor_factory.py} | 121 +++-
python/tvm/relay/build_module.py | 66 +-
src/relay/backend/aot_executor_codegen.cc | 671 +++++++++++++++++++++
src/relay/backend/build_module.cc | 118 ++--
src/relay/backend/graph_executor_codegen.cc | 13 +-
src/relay/backend/graph_plan_memory.cc | 5 +-
src/relay/backend/utils.h | 15 +
src/relay/backend/vm/compiler.cc | 2 +-
src/runtime/crt/Makefile | 1 +
src/runtime/crt/aot_executor/aot_executor.c | 65 ++
src/runtime/crt/common/crt_backend_api.c | 2 +-
src/runtime/crt/common/crt_runtime_api.c | 2 -
src/runtime/crt/common/ndarray.c | 2 +-
src/runtime/crt/crt_config-template.h | 3 +
src/runtime/crt/graph_executor/graph_executor.c | 2 +-
src/runtime/crt/graph_executor/load_json.c | 2 +-
src/runtime/crt/host/crt_config.h | 3 +
src/runtime/crt/host/main.cc | 5 +-
.../crt/internal/aot_executor/aot_executor.h | 83 +++
.../internal/memory/{memory.h => page_allocator.h} | 10 +-
.../crt/memory/{memory.c => page_allocator.c} | 26 +-
src/runtime/crt/memory/stack_allocator.c | 67 ++
src/runtime/crt/utvm_rpc_server/rpc_server.cc | 2 +-
src/runtime/meta_data.h | 36 ++
src/target/metadata_module.cc | 6 +-
src/target/metadata_module.h | 5 +-
src/target/source/codegen_c.cc | 7 +-
src/target/source/codegen_c_host.cc | 91 ++-
src/target/source/codegen_c_host.h | 11 +
src/target/source/codegen_source_base.h | 8 +-
src/target/source/source_module.cc | 33 +-
src/target/source/source_module.h | 4 +-
src/target/target_kind.cc | 4 +-
src/tir/op/builtin.cc | 6 +
src/tir/transforms/lower_tvm_builtin.cc | 12 +-
tests/cpp/relay_build_module_test.cc | 3 +-
tests/cpp/utvm_runtime_standalone_test.cc | 3 +-
tests/crt/aot_executor_test.cc | 178 ++++++
tests/crt/aot_memory_test.cc | 121 ++++
tests/crt/framing_test.cc | 2 +-
tests/crt/memory_test.cc | 6 +-
tests/crt/session_test.cc | 2 +-
tests/micro/zephyr/test_zephyr.py | 2 +-
tests/python/relay/aot/aot_test.mk | 78 +++
tests/python/relay/aot/aot_test_utils.py | 225 +++++++
tests/python/relay/aot/test_crt_aot.py | 349 +++++++++++
tests/python/relay/test_backend_graph_executor.py | 15 +-
tests/python/relay/test_external_codegen.py | 2 +-
tests/python/relay/test_pass_annotation.py | 2 +-
tests/python/unittest/test_crt.py | 5 +-
.../unittest/test_micro_model_library_format.py | 4 +-
tests/python/unittest/test_runtime_graph.py | 2 +-
.../test_runtime_module_based_interface.py | 2 +-
tests/python/unittest/test_runtime_profiling.py | 2 +-
64 files changed, 2463 insertions(+), 214 deletions(-)
rename include/tvm/runtime/crt/{memory.h => page_allocator.h} (87%)
create mode 100644 include/tvm/runtime/crt/stack_allocator.h
copy src/runtime/rpc/rpc_socket_impl.h => include/tvm/runtime/executor_info.h (69%)
rename python/tvm/relay/backend/{graph_executor_factory.py => executor_factory.py} (62%)
create mode 100644 src/relay/backend/aot_executor_codegen.cc
create mode 100644 src/runtime/crt/aot_executor/aot_executor.c
create mode 100644 src/runtime/crt/include/tvm/runtime/crt/internal/aot_executor/aot_executor.h
rename src/runtime/crt/include/tvm/runtime/crt/internal/memory/{memory.h => page_allocator.h} (94%)
rename src/runtime/crt/memory/{memory.c => page_allocator.c} (92%)
create mode 100644 src/runtime/crt/memory/stack_allocator.c
create mode 100644 tests/crt/aot_executor_test.cc
create mode 100644 tests/crt/aot_memory_test.cc
create mode 100644 tests/python/relay/aot/aot_test.mk
create mode 100644 tests/python/relay/aot/aot_test_utils.py
create mode 100644 tests/python/relay/aot/test_crt_aot.py