1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
This app is a demo of using the Halide webassembly backend
To try it out,
- install emscripten (see emscripten.org), and have emcc in your path.
- Build with `make all`
- Run a local webserver using, e.g.: python3 -m http.server 8080 &
- Load Google chrome (at least version 84), go to chrome://flags, and turn on all the experimental webassembly stuff (e.g. threads, simd). If you don't do this, only the single-threaded scalar variant will work (at the time of writing).
- Visit http://127.0.0.1:8080/index.html
- Finally, run `make benchmark_native` and compare the performance you get with native code
|