Skip to content

rajeevgUCI/HalideToWasm

Repository files navigation

HalideToWasm

Demo of compiling a Halide pipeline to wasm and calling the pipeline as a function in JavaScript.

Build and Run Instructions

1. Set up dependencies

Install emscripten. See instructions here.

Clone and build my fork of the Halide library and LLVM. Instructions for building both are in the README for the Halide repository.

2. Build the demo

Set the variables listed at the top of setup.sh to point to the dependencies (which were described above).

Activate emscripten tools (so that emcc is available).

Then, run:

source setup.sh
make

3. Install web server packages

npm install

4. Start web server

npm start

5. Open demo web page

Open the index page in a browser.

Open the browser console to see more output.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published