# IREE Dynamic Web Sample

This tool works similarly to `iree-run-module` (docs).
It loads a compiled IREE program then lets you call exported functions.
Note: Some outputs are logged to the console.

## 1. Load a program

Drag a compiled IREE program
(.vmfb file) here to load it

Currently loaded program: (None)

## 2. Call functions on a loaded program

Function name:

Function arguments:
In the form `dim1xdim2xtype=val1,val2,...`, one per line

Benchmark iterations (inner invoke call):

#### Function outputs:

Total time (including overheads): ``

Mean inference time (Wasm only): ``

## Samples

Click to load a sample program, function, and arguments list.
These links will automatically update the URL.

simple_abs (source)
fullyconnected (source)
collatz (source)

## Compile your own program

Programs must be compiled for WebAssembly to run on this page, using options to `iree-compile` such as:

--iree-hal-target-backends=llvm-cpu \ --iree-llvmcpu-target-triple=wasm32-unknown-emscripten \ --iree-llvmcpu-target-cpu-features=+atomics,+bulk-memory,+simd128 \