@@ -13,7 +13,7 @@ RUN apt-get update \
13
13
&& apt-get upgrade -y \
14
14
&& apt-get install -y --no-install-recommends cmake
15
15
16
- RUN rustup target add wasm32-wasi
16
+ RUN rustup target add wasm32-wasip1
17
17
18
18
#
19
19
# Openvino
@@ -37,10 +37,10 @@ WORKDIR /workspaces/wasi-nn
37
37
RUN git clone --depth 1 https://github.com/bytecodealliance/wasi-nn.git .
38
38
39
39
WORKDIR /workspaces/wasi-nn/rust/examples/classification-example/
40
- RUN cargo build --target=wasm32-wasi
40
+ RUN cargo build --target=wasm32-wasip1
41
41
42
42
WORKDIR /workspaces/wasi-nn/rust/examples/classification-example/build
43
- RUN cp ../target/wasm32-wasi /debug/wasi-nn-example.wasm . \
43
+ RUN cp ../target/wasm32-wasip1 /debug/wasi-nn-example.wasm . \
44
44
&& wget -q --no-clobber https://github.com/intel/openvino-rs/raw/main/crates/openvino/tests/fixtures/mobilenet/mobilenet.xml \
45
45
&& wget -q --no-clobber https://github.com/intel/openvino-rs/raw/main/crates/openvino/tests/fixtures/mobilenet/mobilenet.bin
46
46
# There are model files(mobilenet*) and wasm files(wasi-nn-example.wasm) in the directory,
@@ -67,30 +67,30 @@ RUN git apply ./bump_wasi_nn_to_0_6_0.patch
67
67
# recompile with wasi-nn 0.6.0
68
68
WORKDIR /workspaces/wasmedge-wasinn-examples/openvino-mobilenet-image/
69
69
RUN pushd rust \
70
- && cargo build --target=wasm32-wasi \
70
+ && cargo build --target=wasm32-wasip1 \
71
71
&& popd \
72
72
&& ./download_mobilenet.sh . \
73
73
&& ls -l mobilenet.xml mobilenet.bin
74
74
75
75
WORKDIR /workspaces/wasmedge-wasinn-examples/openvino-mobilenet-raw/
76
76
RUN pushd rust \
77
- && cargo build --target=wasm32-wasi \
77
+ && cargo build --target=wasm32-wasip1 \
78
78
&& popd \
79
79
&& ./download_mobilenet.sh . \
80
80
&& ls -l mobilenet.xml mobilenet.bin tensor-1x224x224x3-f32.bgr
81
81
82
82
WORKDIR /workspaces/wasmedge-wasinn-examples/openvino-road-segmentation-adas/
83
83
RUN pushd openvino-road-seg-adas \
84
- && cargo build --target=wasm32-wasi
84
+ && cargo build --target=wasm32-wasip1
85
85
86
86
WORKDIR /workspaces/wasmedge-wasinn-examples/tflite-birds_v1-image/
87
87
RUN pushd rust \
88
- && cargo build --target=wasm32-wasi
88
+ && cargo build --target=wasm32-wasip1
89
89
90
90
# mount models when running
91
91
WORKDIR /workspaces/wasmedge-wasinn-examples/wasmedge-ggml/qwen
92
92
RUN wget --progress=dot:giga https://www.modelscope.cn/models/qwen/Qwen1.5-0.5B-Chat-GGUF/resolve/master/qwen1_5-0_5b-chat-q2_k.gguf
93
- RUN cargo build --target=wasm32-wasi
93
+ RUN cargo build --target=wasm32-wasip1
94
94
95
95
#
96
96
# iwasm. build from source
@@ -107,7 +107,7 @@ RUN OpenVINO_DIR=/usr/lib/openvino-2023.2.0 \
107
107
-DWAMR_BUILD_WASI_NN_LLAMACPP=1 \
108
108
&& cmake --build build \
109
109
&& cmake --install build
110
-
110
+
111
111
ENV LD_LIBRARY_PATH=/usr/local/lib
112
112
113
113
# add smoke test script
0 commit comments