You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ju...@apache.org on 2023/10/18 04:33:22 UTC

[tvm] branch unity updated: [Web] Further increase default EMCC compilation total memory size (#15944)

This is an automated email from the ASF dual-hosted git repository.

junrushao pushed a commit to branch unity
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/unity by this push:
     new 4a0151c68a [Web] Further increase default EMCC compilation total memory size (#15944)
4a0151c68a is described below

commit 4a0151c68ad54887a35a442920c0a9aaed770f4e
Author: Ruihang Lai <ru...@cs.cmu.edu>
AuthorDate: Wed Oct 18 00:33:15 2023 -0400

    [Web] Further increase default EMCC compilation total memory size (#15944)
    
    As reported by mlc-ai/mlc-llm#1081, the current 40MB memory size is
    likely still not enough. So we further increase it to 80MB.
---
 python/tvm/contrib/emcc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/tvm/contrib/emcc.py b/python/tvm/contrib/emcc.py
index 294b9a80cf..d62b22f1e8 100644
--- a/python/tvm/contrib/emcc.py
+++ b/python/tvm/contrib/emcc.py
@@ -46,7 +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"]
+    cmd += ["-s", "TOTAL_MEMORY=80MB"]
 
     objects = [objects] if isinstance(objects, str) else objects