Update sample workload wasm-av1 and add workload XNNPACK (#443)

This commit is contained in:
Wenyong Huang
2020-11-13 17:53:23 +08:00
committed by GitHub
parent a2641e174a
commit 892af84161
17 changed files with 1474 additions and 19 deletions

View File

@ -13,6 +13,7 @@ ARG WASI_SDK_VER=11.0
ARG WABT_VER=1.0.19
ARG CMAKE_VER=3.16.2
ARG BINARYEN_VER=version_97
ARG BAZEL_VER=3.7.0
#
# install wasi-sdk
@ -66,6 +67,16 @@ RUN cd /opt \
&& rm ${BINARYEN_FILE} \
&& ln -sf /opt/binaryen-${BINARYEN_VER} /opt/binaryen
RUN apt install -y unzip zip
#
# install bazel
ARG BAZEL_FILE=bazel-${BAZEL_VER}-installer-linux-x86_64.sh
COPY ${BAZEL_FILE} /tmp
RUN cd /tmp \
&& chmod a+x ${BAZEL_FILE} \
&& ./${BAZEL_FILE}
#
# Clean up
RUN apt-get autoremove -y \

View File

@ -13,6 +13,7 @@ WASI_SDK_VER=11.0
WABT_VER=1.0.19
CMAKE_VER=3.16.2
BINARYEN_VER=version_97
BAZEL_VER=3.7.0
cd build_scripts
if [[ ! -f wasi-sdk-${WASI_SDK_VER}-linux.tar.gz ]]; then
@ -34,6 +35,10 @@ fi
if [[ ! -f binaryen-${BINARYEN_VER}-x86_64-linux.tar.gz ]]; then
wget https://github.com/WebAssembly/binaryen/releases/download/${BINARYEN_VER}/binaryen-${BINARYEN_VER}-x86_64-linux.tar.gz
fi
if [[ ! -f bazel-${BAZEL_VER}-installer-linux-x86_64.sh ]]; then
wget https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VER}/bazel-${BAZEL_VER}-installer-linux-x86_64.sh
fi
cd -
docker build \
@ -45,4 +50,5 @@ docker build \
--build-arg WABT_VER=${WABT_VER} \
--build-arg CMAKE_VER=${CMAKE_VER} \
--build-arg BINARYEN_VER=${BINARYEN_VER} \
--build-arg BAZEL_VER=${BAZEL_VER} \
-t clang_env:0.1 -f Dockerfile build_scripts