Home
last modified time | relevance | path

Searched refs:example (Results 1 – 25 of 182) sorted by relevance

12345678

/wasmtime-44.0.1/examples/min-platform/
H A DREADME.md3 This example is a showcase of what it looks like to build Wasmtime with a
6 for example. Support here is built on Wasmtime's support of "custom platforms"
10 The example is organized into a few locations:
16 * `examples/min-platform/embedding/wasmtime-platform.{h,c}` - an example
19 `crates/wasmtime/src/runtime/vm/sys/custom/capi.rs`. The example here
33 * `examples/min-platform/build.sh` - a script to build/run this example.
44 example is built in Wasmtime's CI with `x86_64-unknown-none` for example as a
48 that the embedding requires, for example the `wasmtime_*` symbols. This host
52 for example at the very least.
54 ## Running this example
[all …]
/wasmtime-44.0.1/crates/wasi-nn/examples/classification-example-named/
H A DREADME.md3 This example is mostly the same as the [`classification-example`] but uses
11 The example pre-requisites are mostly the same as that of the
12 [`classification-example`], except that we separate the model files that the
22 As before, this Rust [example] compiles to a WebAssembly program using the
25 [example]: src/main.rs
30 [`classification-example`]:
33 …--wasi=nn --wasi=nn-graph=openvino::mobilenet target/wasm32-wasip1/debug/wasi-nn-example-named.wasm
42 [`classification-example`]: ../classification-example
/wasmtime-44.0.1/crates/wasi-nn/examples/classification-example-pytorch/
H A DREADME.md1 This example project demonstrates using the `wasi-nn` API to perform PyTorch based inference. It co…
3 To run this example:
9 3. Navigate to this example directory `crates/wasi-nn/examples/classification-example-pytorch`.
14 4. Build this example `cargo build --target=wasm32-wasip1`.
17 …ication-example-pytorch::. ${Wasmtime_root_dir}/crates/wasi-nn/examples/classification-example-pyt…
/wasmtime-44.0.1/docs/
H A Dexamples-wasip2.md4 repository to run the example locally.
8 This example shows how to use the [`wasmtime-wasi`] crate to define WASI
17 For this WASI example, this Hello World program is compiled to a WebAssembly component using the WA…
33 This example shows adding and configuring the WASI imports to invoke the above WASM component.
43 ### Async example
45 This [async example code][code2] shows how to use the [wasmtime-wasi][`wasmtime-wasi`] crate to
46 execute the same WASIp2 component from the example above. This example requires the `wasmtime` crat…
64 repository to run the example locally.
H A Dexamples-serialize.md4 repository to run the example locally:
10example shows how to compile a module once and serialize its compiled representation to disk and l…
H A Dexamples-async.md4 repository to run the example locally.
8 This example demonstrates configuring Wasmtime for asynchronous operation and calling async host fu…
H A Dexamples-mpk.md4 repository to run the example locally.
8 This example demonstrates using the [Memory Protection Keys](https://www.man7.org/linux/man-pages/m…
H A Dexamples-anyref.md4 repository to run the example locally:
10 This example demonstrates using `anyref` values.
H A Dexamples-multithreaded-embedding.md4 repository to run the example locally:
10 This example demonstrates using Wasmtime in multithreaded runtimes.
H A Dexamples-multimemory.md4 repository to run the example locally:
10 This example demonstrates using the multiple memories proposal, instantiating a module that imports…
H A Dexamples-hello-world.md4 repository to run the example locally:
10 This example shows off how to instantiate a simple wasm module and interact with
H A Dexamples-gcd.md4 repository to run the example locally:
10 This example shows off how run a wasm program which calculates the GCD of two
H A Dexamples-wasip1.md4 repository to run the example locally:
10 This example shows off how to instantiate a wasm module using WASI imports.
H A Dexamples-multi-value.md4 repository to run the example locally:
10 This example shows off how to interact with a wasm module that uses multi-value
H A Dexamples-externref.md4 repository to run the example locally:
12 This example shows how to pass opaque host references into and out of WebAssembly using `externref`.
H A Dexamples-memory.md4 repository to run the example locally:
10 This example shows off how to interact with wasm memory in a module. Be sure to
H A Dexamples-linking.md4 repository to run the example locally:
10 This example shows off how to compile and instantiate modules which link
/wasmtime-44.0.1/crates/wasi-nn/examples/classification-example-winml/
H A DREADME.md1 This example project demonstrates using the `wasi-nn` API to perform WinML-based
3 and then build a WebAssembly example, which:
13 To run this example, perform the following steps on Windows 10 v1803 and later:
24 cd crates\wasi-nn\examples\classification-example-winml
30 1. Compile this example; the `wasm32-wasip1` output is a WebAssembly file:
37 …e\wasmtime.exe --dir fixture::fixture -S nn target\wasm32-wasip1\release\wasi-nn-example-winml.wasm
39 1. The example will print the top 5 classification results. To run with a
/wasmtime-44.0.1/crates/wasi-nn/examples/classification-example/
H A DREADME.md3 This example project demonstrates using the `wasi-nn` API to perform machine
13 This example uses the OpenVINO framework: [installation
40 Compile this Rust [example] to a WebAssembly program using the `wasm32-wasip1`
49 [example]: src/main.rs
54 This example uses Wasmtime, which contains a wasi-nn [implementation][crate]. To
63 With the pre-requisites in place, run the example:
66 <path>/<to>/wasmtime run --wasi=nn --dir=fixture target/wasm32-wasip1/debug/wasi-nn-example.wasm
72 argument. For this model (see the [source][example]), we expect to see the list
/wasmtime-44.0.1/docs/assemblyscript-hello-world/
H A DREADME.md3 This example implements the typical "Hello, World!" application in AssemblyScript, utilizing WASI.
13 Build the AssemblyScript example
19 Run the example
/wasmtime-44.0.1/crates/wasi-nn/examples/
H A DREADME.md1 See `ci/run-wasi-nn-example.sh` for how the classification example is tested during CI.
/wasmtime-44.0.1/cranelift/jit/
H A DREADME.md6 See the [example program] for a brief overview of how to use this.
8 [example program]: https://github.com/bytecodealliance/wasmtime/blob/main/cranelift/jit/examples/ji…
/wasmtime-44.0.1/.github/actions/install-plugins-prerequisites/
H A Daction.yml1 name: 'Install prerequisites for plugins example'
2 description: 'Install prerequisites for plugins example'
/wasmtime-44.0.1/cranelift/codegen/src/opts/
H A DREADME.md10 For example, the rule
29 For example, the rule
42 rematerialized anywhere without introducing correctness issues. For example,
48 prefer targeted instances of the rewrite (for example, canonicalizing adds
53 For example, the commutativity in the first rule in the following snippet is
120 to the casual reader. For example:
/wasmtime-44.0.1/examples/
H A DREADME.md11 Rust examples can be executed with `cargo run --example $name`. C and C++ examples can
13 basename of the example, and for C++ it is `[basename]-cpp`. You can run

12345678