File: README.md

package info (click to toggle)
halide 21.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 55,752 kB
  • sloc: cpp: 289,334; ansic: 22,751; python: 7,486; makefile: 4,299; sh: 2,508; java: 1,549; javascript: 282; pascal: 207; xml: 127; asm: 9
file content (15 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (4)
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