From b587e33027ced167cd66ae26646e8dc5b3293120 Mon Sep 17 00:00:00 2001 From: Mehrdad Hessar Date: Tue, 29 Nov 2022 15:52:54 -0600 Subject: [PATCH] [microTVM][Tutorial] Fix micro_aot and micro_autotune tutorials (#13513) Added config_main_stack_size to autotune since running graph debugger requires more workspace. Also added to micro_aot because of KWS model. Also removed west_cmd option in tutorial because of #13377 --- gallery/how_to/work_with_microtvm/micro_aot.py | 7 ++++++- gallery/how_to/work_with_microtvm/micro_autotune.py | 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gallery/how_to/work_with_microtvm/micro_aot.py b/gallery/how_to/work_with_microtvm/micro_aot.py index f702170f0bb9..4d6890f8d936 100644 --- a/gallery/how_to/work_with_microtvm/micro_aot.py +++ b/gallery/how_to/work_with_microtvm/micro_aot.py @@ -134,7 +134,12 @@ if use_physical_hw: template_project_path = pathlib.Path(tvm.micro.get_microtvm_template_projects("zephyr")) - project_options = {"project_type": "host_driven", "board": BOARD, "serial_number": SERIAL} + project_options = { + "project_type": "host_driven", + "board": BOARD, + "serial_number": SERIAL, + "config_main_stack_size": 4096, + } temp_dir = tvm.contrib.utils.tempdir() generated_project_dir = temp_dir / "project" diff --git a/gallery/how_to/work_with_microtvm/micro_autotune.py b/gallery/how_to/work_with_microtvm/micro_autotune.py index ea83ef563940..13bf4efac138 100644 --- a/gallery/how_to/work_with_microtvm/micro_autotune.py +++ b/gallery/how_to/work_with_microtvm/micro_autotune.py @@ -154,7 +154,6 @@ template_project_dir=pathlib.Path(tvm.micro.get_microtvm_template_projects("zephyr")), project_options={ "board": BOARD, - "west_cmd": "west", "verbose": False, "project_type": "host_driven", "serial_number": SERIAL, @@ -222,10 +221,10 @@ temp_dir / "project", { "board": BOARD, - "west_cmd": "west", "verbose": False, "project_type": "host_driven", "serial_number": SERIAL, + "config_main_stack_size": 4096, }, ) @@ -266,10 +265,10 @@ temp_dir / "project", { "board": BOARD, - "west_cmd": "west", "verbose": False, "project_type": "host_driven", "serial_number": SERIAL, + "config_main_stack_size": 4096, }, )