areusch commented on code in PR #12390:
URL: https://github.com/apache/tvm/pull/12390#discussion_r951887026


##########
apps/microtvm/zephyr/template_project/microtvm_api_server.py:
##########
@@ -195,6 +195,33 @@ def _get_device_args(options):
     )
 
 
+def _get_board_mem_size(options):
+    board_file_path = (
+        pathlib.Path(get_zephyr_base(options))
+        / "boards"
+        / "arm"
+        / options["zephyr_board"]
+        / (options["zephyr_board"] + ".yaml")
+    )
+    try:
+        with open(board_file_path) as f:
+            board_data = yaml.load(f, Loader=yaml.FullLoader)
+            return int(board_data["ram"]) * 1024
+    except:
+        _LOG.warning("Board memory information is not available.")
+    return None
+
+
+DEFAULT_HEAP_SIZE_BYTES = 216 * 1024
+
+
+def _get_recommended_heap_size(options):

Review Comment:
   and here



##########
apps/microtvm/zephyr/template_project/boards.json:
##########
@@ -54,7 +54,8 @@
         "is_qemu": false,
         "fpu": true,
         "vid_hex": "0483",
-        "pid_hex": "374b"
+        "pid_hex": "374b",
+        "recommended_heap_size": 512000

Review Comment:
   i think this one also needs it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to