bytecodealliance / wasi-nn

High-level bindings for wasi-nn system calls
Apache License 2.0
45 stars 35 forks source link

Document engine flags for enabling wasi-nn #35

Closed abrown closed 3 years ago

abrown commented 3 years ago

The documentation does not make it clear that currently one must build Wasmtime with a special flag --features wasi-nn in order to enable the wasi-nn features. This is present in the GitHub workflow but it should be made explicit somewhere (perhaps in the top-level README and linked to from the as and rust READMEs?).

abrown commented 3 years ago

The --features wasi-nn flag will no longer be necessary once the next version of Wasmtime is released (v0.27.0). After https://github.com/bytecodealliance/wasmtime/pull/2859, wasi-nn can be enabled by passing the --wasi-modules=experimental-wasi-nn flag at runtime. After the next Wasmtime release, we should:

brianjjones commented 3 years ago

Docs have been updated. And the CI uses the build.sh script to test, and that script has been updated with the needed flags.