This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/samples/workload
2020-11-13 17:53:23 +08:00
..
bwa Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
cmake Update sample workload wasm-av1 and add workload XNNPACK (#443) 2020-11-13 17:53:23 +08:00
docker Update sample workload wasm-av1 and add workload XNNPACK (#443) 2020-11-13 17:53:23 +08:00
meshoptimizer Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
tensorflow Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00
wasm-av1 Update sample workload wasm-av1 and add workload XNNPACK (#443) 2020-11-13 17:53:23 +08:00
XNNPACK Update sample workload wasm-av1 and add workload XNNPACK (#443) 2020-11-13 17:53:23 +08:00
README.md Import SIMD feature and add some workload samples (#438) 2020-11-05 18:15:15 +08:00

All workloads have similar a requirment of software dependencies. It includes wasi-sdk, clang-11, emsdk, wabt and binaryen

It might slightly different when using MacOS, and other linux distro than Ubuntu. This document only target Ubuntu 18.04 as an example.

Installation instructions

  • wasi-sdk. Install latest release in /opt/wasi-sdk or /opt/wasi-sdk-11

  • wabt. Install latest release in /opt/wabt or /opt/wabt-1.0.19

  • clang-11. Refer to the guide.

  • emsdk. Refer to the guide. Don't forget to activate emsdk and set up environment variables. Verify it with echo ${EMSDK}.

  • libclang_rt.builtins-wasm32.a. wasi has its private rt library. Put it under clang search path

# copy it
$ cp -r /opt/wasi-sdk-11.0/lib/clang/10.0.0/lib/wasi /usr/lib/llvm-11/lib/clang/11.0.0/lib/

# or just link it
$ ln -sf /opt/wasi-sdk-11.0/lib/clang/10.0.0/lib/wasi/ /usr/lib/llvm-11/lib/clang/11.0.0/lib/
  • binaryen. Install latest release in /opt/binaryen or /opt/binaryen-version_97