Skip to content

Meet an exception when running rust examples with buid.sh #101

@lum1n0us

Description

@lum1n0us

I am using a debian bookworm image. Installed openvino_2024.1.0.15008(using archive). Installed wasmtime-v21.0.1 release. Cloned latest wasi-nn repo.

Meet below exception

$ pwd
/workspace/wasi-nn
$ ./build.sh rust

...
Read graph XML, first 50 characters: <?xml version="1.0" ?>
<net name="mobilenet_v2_1.0
Read graph weights, size in bytes: 13956476
thread 'main' panicked at crates/wasi-nn/src/witx.rs:45:49:
not implemented
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

I noticed that CI uses a compiled-from-source building, So switched to a new wasmtime build-from-source

$ git clone https://github.com/bytecodealliance/wasmtime --recursive wasmtime
$ cd wasmtime
$ git checkout --track origin/release-21.0.0
$ OPENVINO_INSTALL_DIR=/opt/intel/openvino cargo build -p wasmtime-cli --features wasi-nn 

but this time the exception is still there:

Read graph XML, first 50 characters: <?xml version="1.0" ?>
<net name="mobilenet_v2_1.0
Read graph weights, size in bytes: 13956476
thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/openvino-sys-0.6.0/src/generated/functions.rs:3:1:
`openvino_c` function not loaded: `ie_core_create

Please guide me through. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions