Skip to content

Enable WAMR serialization (on-demand and AOT) #4023

Closed as not planned
Closed as not planned

Description

@benvanik

WAMR supports the ability to precompile WASM modules via the aot_convert_wasm_module API. This turns an in-memory generic WASM bytecode module into a serializable AOTModule for the current machine.

There are two usage modes for this:

  • independent of execution perform a wasm->aot translation and cache to disk for later loading (done on model updates only)
  • on-demand during execution (effectively a JIT)

We should be able to support both modes to allow the compiler part (which links in LLVM) to live in an independent process/binary from the execution part in the HAL backend. We can optionally then support the on-demand/JIT style with caching (using IREE's iree_hal_executable_cache_t API).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement ➕hal/cpu

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions