Skip to content

Commit

Permalink
[microTVM] Project API infrastructure (apache#8380)
Browse files Browse the repository at this point in the history
* Initial commit of API server impl.

* initial commit of api client

* Add TVM-side glue code to use Project API

* Change tvm.micro.Session to use Project API

* Rework how crt_config.h is used on the host.

 * use template crt_config.h for host test runtime; delete
   src/runtime/crt/host/crt_config.h so that it doesn't diverge from
   the template
 * bring template crt_config.h inline with the one actually in use
  * rename to MAX_STRLEN_DLTYPE
 * Create a dedicated TVM-side host crt_config.h in src/runtime/micro

* Modify Transport infrastructure to work with Project API

* Add host microTVM API server

* Zephyr implementation of microTVM API server

 * move all zephyr projects to apps/microtvm/zephyr/template_project

* consolidate CcompilerAnnotator

* Allow model library format with c backend, add test.

* Update unit tests

* fix incorrect doc

* Delete old Zephyr build infrastructure

* Delete old build abstractions

* Delete old Transport implementations and simplify module

* lint

* ASF header

* address gromero comments

* final fixes?

* fix is_shutdown

* fix user-facing API

* fix TempDirectory / operator

* Update micro_tflite tutorial

* lint

* fix test_crt and test_link_params

* undo global micro import, hopefully fix fixture

* lint

* fix more tests

* Address tmoreau89 comments and mehrdadh comments

 * fix random number generator prj.conf for physical hw
 * uncomment proper aot option
  • Loading branch information
areusch authored and ylc committed Jan 13, 2022
1 parent 0e88a8b commit 947bd28
Show file tree
Hide file tree
Showing 84 changed files with 3,369 additions and 3,805 deletions.
4 changes: 2 additions & 2 deletions apps/bundle_deploy/crt_config/crt_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
/*! Maximum supported arguments in generated functions */
#define TVM_CRT_MAX_ARGS 10
/*! Maximum supported string length in dltype, e.g. "int8", "int16", "float32" */
#define TVM_CRT_STRLEN_DLTYPE 10
#define TVM_CRT_MAX_STRLEN_DLTYPE 10
/*! Maximum supported string length in function names */
#define TVM_CRT_STRLEN_NAME 80
#define TVM_CRT_MAX_STRLEN_FUNCTION_NAME 80

/*! Maximum number of registered modules. */
#define TVM_CRT_MAX_REGISTERED_MODULES 2
Expand Down
27 changes: 0 additions & 27 deletions apps/microtvm/zephyr/aot_demo/CMakeLists.txt

This file was deleted.

20 changes: 0 additions & 20 deletions apps/microtvm/zephyr/aot_demo/README.md

This file was deleted.

28 changes: 0 additions & 28 deletions apps/microtvm/zephyr/aot_demo/boards/mps2_an521.conf

This file was deleted.

34 changes: 0 additions & 34 deletions apps/microtvm/zephyr/aot_demo/boards/nrf5340dk_nrf5340_cpuapp.conf

This file was deleted.

31 changes: 0 additions & 31 deletions apps/microtvm/zephyr/aot_demo/boards/nucleo_l4r5zi.conf

This file was deleted.

25 changes: 0 additions & 25 deletions apps/microtvm/zephyr/aot_demo/boards/qemu_cortex_r5.conf

This file was deleted.

28 changes: 0 additions & 28 deletions apps/microtvm/zephyr/aot_demo/boards/qemu_x86.conf

This file was deleted.

62 changes: 0 additions & 62 deletions apps/microtvm/zephyr/aot_demo/crt/crt_config.h

This file was deleted.

32 changes: 0 additions & 32 deletions apps/microtvm/zephyr/aot_demo/prj.conf

This file was deleted.

1 change: 0 additions & 1 deletion apps/microtvm/zephyr/aot_demo/qemu-hack

This file was deleted.

26 changes: 0 additions & 26 deletions apps/microtvm/zephyr/host_driven/CMakeLists.txt

This file was deleted.

28 changes: 0 additions & 28 deletions apps/microtvm/zephyr/host_driven/boards/mps2_an521.conf

This file was deleted.

Loading

0 comments on commit 947bd28

Please sign in to comment.