-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
I successfully used the webassembly branch to compile a pipeline to wasm, and ran the pipeline on data in the browser. But I was wondering if my approach can be improved: is there a better way to convert a Halide pipeline to wasm, or a better way to generate an input buffer?
My current approach is:
- Compile Halide pipeline to .s assembly using the webassembly branch.
- Use binaryen to convert the .s to .wasm. I had to make a change to the webassembly branch, see my commit here.
- Write C++ code that creates a Halide input buffer.
- Use emscripten to compile the C++ code to .wasm.
- Write JavaScript glue code between the Halide-generated wasm and the emscripten-generated wasm.
Thanks!
sajjadt
Metadata
Metadata
Assignees
Labels
No labels