Fix wasm OOM on large models: 32mb stack, raise MAXIMUM_MEMORY to 4gb.
PiperOrigin-RevId: 926060014 Change-Id: I8c4e152321737b1f4cc963f3c6c424af2fe951b4
This commit is contained in:
committed by
Copybara-Service
parent
0897e3aec1
commit
25afa6b732
@@ -120,8 +120,9 @@ if(EMSCRIPTEN)
|
||||
-sASYNCIFY=1
|
||||
-sFETCH=1
|
||||
-sGL_PREINITIALIZED_CONTEXT=1
|
||||
-sSTACK_SIZE=512mb
|
||||
-sSTACK_SIZE=32mb
|
||||
-sINITIAL_MEMORY=1024mb
|
||||
-sMAXIMUM_MEMORY=4gb
|
||||
-sASSERTIONS=1
|
||||
-fexceptions
|
||||
-g
|
||||
|
||||
Reference in New Issue
Block a user