forked from neo-ai/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
µTVM CRT modifications for on-device RPC server (apache#5921)
* Reorganize CRT into parts, public API, and add standalone build. * Create a make-based build in src/runtime/crt. This is intended to be built in build/standalone_crt (generated by running ninja standalone_crt in build/). Its job is to build CRT without depending on headers not explicitly allowed in CRT. * Create a "public-facing" CRT API targeted to firmware running alongside CRT in include/tvm/runtime/crt. Developers who are integrating the CRT are the target of this API. * Reorganize CRT internally into common/ and graph_runtime/ pieces. Build each pieces as a separate statically-linked library. * Slim down TVMGraphRuntime public-facing API to just the functions that are used externally. * Updates to apps/bundle_deploy to make this work. * Add TVMFuncRegistry, CRT test infrastructure, and tests. * Also add error_codes.h, a file containing error codes returned by CRT. * Add TVMErrorf() * [API_CHANGE] Integrate func registry into CRT. * NOTE: This changes the default API for functions exposed under the CRT by the TVMFuncCall API. `resource_handle` is now always given as a new 6th parameter. * `resource_handle` is NULL when invoked on a global function and a pointer to the module owning the function otherwise. * Generalize arena-based memory manager. * lint * Fix git-clang-format arg parsing * add apache header * add mutable func registry tests * git-clang-format * fix more lint * Move memory_test to crttests. * fix tests * checkpoint * checkpoint * bundle_deploy demo_static works * rm debug printf * git-clang-format * fix lint * add asf header * pylint * update build configs for jenkins * make regression compiler happy * fix build errors in regression GCC * address comments * git-clang-format * fix for 32-bit cpp regression * fix incorrect use of memcpy and tests for 32-bit * clang-format
- Loading branch information
Showing
50 changed files
with
2,290 additions
and
721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.