Closed videetparekh closed 4 years ago
This thread perhaps duplicates https://github.com/apache/incubator-tvm/issues/4843 unfortunately, we do not yet have any effort on recovering the emcc support, please chime in that thread if you are interested.
Hi Tianqi,
Not sure which thread you're referring to. I've managed to compile a Mobilenet TensorFlow model down through TVM to .wasm
and .js
files (the JS file being a wrapper over the wasm
). This includes SIMD
instructions, using vanilla upstream LLVM. I'd be happy to share details on how to get there, hopefully it'll add value to someone out there.
I'm struggling now with the tvm_runtime.js
to ingest the module and infer using it. It seems Emscripten changed their API interface in 2018, and those changes broke TVM code in the tvm_runtime.js
. So far this is a blocking error:
Assertion failed: Missing signature argument to addFunction
Assertion failed: Missing signature argument to addFunction
RuntimeError: abort(Assertion failed: Missing signature argument to addFunction). Build with -s ASSERTIONS=1 for more info.
at abort (.../test_module.js:1:15394)
at assert (.../test_module.js:1:7675)
at addFunctionWasm (.../test_module.js:1:5852)
at Object.addFunction (.../test_module.js:1:6047)
at Object.TVMRuntime (.../tvm_runtime.js:526:36)
at Object.create (.../tvm_runtime.js:1262:16)
at Object.<anonymous> (.../test.js:8:25)
at Module._compile (internal/modules/cjs/loader.js:936:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
at Module.load (internal/modules/cjs/loader.js:790:32)
Will TVM reviving support for WASM/emcc anytime soon? Where are your efforts currently and what kind of support do you require?
Sorry, the corresponding thread is here https://github.com/apache/incubator-tvm/issues/2425
I'm trying to get the following tutorial (https://github.com/apache/incubator-tvm/tree/master/web) up and running within a Docker container. I'm using a pre-installed version of TVM, installing Emscripten(clang-tag-e1.38.30_32bit) and patching the two through TVM's config.
I'm able to generate the
test_add_one.bc
file, but the linking fails at Runtime with the following error:I believe Emscripten no longer supports fastcomp and so clang-tag-e1.38.30_32bit would be the version to use?
Please let me know how I can resolve this?