Stream: git-wasmtime

Topic: wasmtime / PR #2608 Add a method to share `Config` across...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 26 2021 at 19:57):

alexcrichton opened PR #2608 from tune-cpu-flags to main:

With Module::{serialize,deserialize} it should be possible to share
wasmtime modules across machines or CPUs. Serialization, however, embeds
a hash of all configuration values, including cranelift compilation
settings. By default wasmtime's selection of the native ISA would enable
ISA flags according to CPU features available on the host, but the same
CPU features may not be available across two machines.

This commit adds a Config::cranelift_clear_cpu_flags method which
allows clearing the target-specific ISA flags that are automatically
inferred by default for the native CPU. Options can then be
incrementally built back up as-desired with teh cranelift_other_flag
method.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 26 2021 at 21:45):

peterhuene submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 26 2021 at 21:59):

alexcrichton merged PR #2608.


Last updated: Nov 22 2024 at 17:03 UTC