Wenyong Huang 2f530e67fc Fix app manager install atomics app issue and optimize workload scripts (#458) преди 5 години
..
XNNPACK 2f530e67fc Fix app manager install atomics app issue and optimize workload scripts (#458) преди 5 години
bwa 2f530e67fc Fix app manager install atomics app issue and optimize workload scripts (#458) преди 5 години
cmake 892af84161 Update sample workload wasm-av1 and add workload XNNPACK (#443) преди 5 години
docker 2f530e67fc Fix app manager install atomics app issue and optimize workload scripts (#458) преди 5 години
meshoptimizer 2f530e67fc Fix app manager install atomics app issue and optimize workload scripts (#458) преди 5 години
tensorflow a3074df21b Import SIMD feature and add some workload samples (#438) преди 5 години
wasm-av1 2f530e67fc Fix app manager install atomics app issue and optimize workload scripts (#458) преди 5 години
README.md 2f530e67fc Fix app manager install atomics app issue and optimize workload scripts (#458) преди 5 години
preparation.sh 2f530e67fc Fix app manager install atomics app issue and optimize workload scripts (#458) преди 5 години

README.md

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

use preparation.sh to install all dependencies before compiling any workload.

for details, the script includes below steps:

  • 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