This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 516c56b46a [Web] Increase default EMCC compilation total memory size
(#15218)
516c56b46a is described below
commit 516c56b46aa60b7e25c526470ca3dbcb80de0272
Author: Ruihang Lai <[email protected]>
AuthorDate: Tue Jul 4 05:29:35 2023 -0700
[Web] Increase default EMCC compilation total memory size (#15218)
The default EMCC "total memory" is not large enough for end-to-end
applications such as Web-LLM. This PR increases the limit to 40MB
for compilation.
---
python/tvm/contrib/emcc.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/python/tvm/contrib/emcc.py b/python/tvm/contrib/emcc.py
index 8be4865126..294b9a80cf 100644
--- a/python/tvm/contrib/emcc.py
+++ b/python/tvm/contrib/emcc.py
@@ -46,6 +46,7 @@ def create_tvmjs_wasm(output, objects, options=None,
cc="emcc"):
cmd += ["-s", "ERROR_ON_UNDEFINED_SYMBOLS=0"]
cmd += ["-s", "STANDALONE_WASM=1"]
cmd += ["-s", "ALLOW_MEMORY_GROWTH=1"]
+ cmd += ["-s", "TOTAL_MEMORY=40MB"]
objects = [objects] if isinstance(objects, str) else objects